<p>I'm following that tutorial (<a href="https://www.baeldung.com/spring-boot-minikube" rel="noreferrer">https://www.baeldung.com/spring-boot-minikube</a>)
I want to create Kubernetes deployment in yaml file (simple-crud-dpl.yaml):</p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: simple-crud
spec:
  selector:
      matchLabels:
        app: simple-crud
  replicas: 3
  template:
    metadata:
      labels:
        app: simple-crud
    spec:
      containers:
        - name: simple-crud
          image: simple-crud:latest
          imagePullPolicy: Never
          ports:
            - containerPort: 8080
</code></pre>

<p>but when I run <code>kubectl create -f simple-crud-dpl.yaml</code> i got:
<code>error: SchemaError(io.k8s.api.autoscaling.v2beta2.MetricTarget): invalid object doesn't have additional properties</code></p>

<p>I'm using the newest version of kubectl: </p>

<pre><code>kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:45:25Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
</code></pre>

<p>I'm also using minikube locally as it's described in tutorial. Everything is working till deployment and service. I'm not able to do it.</p>

Arkadiusz Migała
<p>After installing kubectl with brew you should run: </p>

<ol>
<li><p><code>rm /usr/local/bin/kubectl</code></p></li>
<li><p><code>brew link --overwrite kubernetes-cli</code></p></li>
</ol>

<p>And also optionally:</p>

<p><code>brew link --overwrite --dry-run kubernetes-cli</code>.</p>
