<p>I am new to Kubernetes and Minikube.
I was trying to run <code>kubectl apply -f ./deployment.yaml</code></p>

<p>I tried to put version apps/v1beta1 as the error showed, but it's still wrong.</p>

<p>Error:
<code>error: SchemaError(io.k8s.api.storage.v1beta1.CSINodeDriver): invalid object doesn't have additional properties</code></p>

<p>Here's my yaml file:</p>

<pre><code>apiVersion: apps/v1beta2
kind: Deployment
metadata:
  name: tomcat-deployment
spec:
  selector:
    matchLabels:
      app: tomcat
  replicas: 1
  template:
    metadata:
      labels:
        app: tomcat
    spec:
      containers:
        - name: tomcat
          image: tomcat:9.0
          ports:
            - containerPort: 8080

</code></pre>

<p>Expected output:</p>

<p>deployment "tomcat-deployment" created</p>

<p>tl;dr</p>

<p>It's a version issue. I had 1.10, and the working is 1.14.</p>

<hr>

<p>Apparently the <code>kubectl version</code> of my mac is 1.10. </p>

<p>I tried to see if I can do a <code>brew install kubectl</code> and it said that I already have kubectl.</p>

<pre><code>Warning: kubernetes-cli 1.14.0 is already installed, it's just not linked
You can use `brew link kubernetes-cli` to link this version.

To force the link and overwrite all conflicting files:
  brew link --overwrite kubernetes-cli
</code></pre>

<p>I saw that the current version in my local is 1.10. and homebrew is saying 1.14</p>

<p>I overwrote the symlink via brew link, and it worked.</p>
