Kubernetes create deployment unexpected SchemaError

后端 未结 18 1931
北荒
北荒 2020-12-24 00:29

I\'m following that tutorial (https://www.baeldung.com/spring-boot-minikube) I want to create Kubernetes deployment in yaml file (simple-crud-dpl.yaml):

apiV         


        
18条回答
  •  感动是毒
    2020-12-24 01:08

    I am on Windows 10 with Docker Client and Minikube both installed. I was getting the error below;

    error: SchemaError(io.k8s.api.core.v1.Node): invalid object doesn't have additional properties

    I resolved it by updating the version of kubectl.exe to that being used by minikube. Here are the steps:

    Note: Minikube tends to use the latest version of Kubernetes so it will be advisable to grab the latest kubectl.

    1. Download the matching version of kubectl.exe.

    2. Navigate to your Docker path where your kubectl is located e.g. C:\Program Files\Docker\Docker\resources\bin

    3. Place your downloaded kubectl.exe there. If it asks you replace it, please do.

    4. Now type refreshenv in Powershell.

    5. Check the new version if it's what you have placed there; kubectl version.

    Now you are good, retry whatever tasks you was doing.

提交回复
热议问题