<p>I have a <code>skaffold.yaml</code>file like below:</p>
<pre><code>apiVersion: skaffold/v2alpha3
kind: Config
deploy:
  mk:
    manifests:
      - ./infra/k8s/*
build:
  local:
    push: false
  artifacts:
    - image: learnertester/auth
      context: auth
      docker:
        dockerfile: Dockerfile
      sync:
        manual:
          - src: 'src/**/*.ts'
            dest: .
    - image: learnertester/ticketing-client
</code></pre>
<p>Now, I have installed <code>microk8s</code> on Ubuntu 22.04 and want to use it. I have also defined an alias <code>mk</code> for <code>microk8s kubectl</code>. But when I change the following line:</p>
<pre><code>deploy:
  kubectl:
</code></pre>
<p>To:</p>
<pre><code>deploy:
  mk:
</code></pre>
<p>I get the below error running <code>skaffold dev</code>:</p>
<pre><code>parsing skaffold config: error parsing skaffold configuration file: unable to parse config: yaml: unmarshal errors:
  line 55: field mk not found in type v2alpha3.DeployConfig
</code></pre>
<p>How should I fix that?</p>

best_of_man
<p>I face the same problem:</p>
<pre><code>apiVersion: skaffold/v2alpha3
kind: Config
deploy:
  microk8s kubectl:
  manifests:
    - ./infra/k8s/*
</code></pre>
<p>......</p>
<p>&quot;Property microk8s kubectl is not allowed.yaml-schema: skaffold.yaml&quot;</p>
<p>I found this solution from here:
<a href="https://github.com/GoogleContainerTools/skaffold/issues/5283" rel="nofollow noreferrer">https://github.com/GoogleContainerTools/skaffold/issues/5283</a></p>
<p>Ubuntu 20.04 Server - microk8s Kubernetes - old laptop as a server</p>
<p>. Undo alias commented or delete the line:
# alias kubectl='microk8s kubectl'</p>
<pre><code>nano ~/.bashrc
nano ~/.bash_aliases
</code></pre>
<p>. Install kubectl and export config</p>
<pre><code> sudo snap install kubectl --classic
 microk8s.kubectl config view --raw &gt; $HOME/.kube/config
 New config file created in my case....ls $HOME/.kube/
</code></pre>
<p>. scaffold.yaml infra/k8s the path for all .yaml files</p>
<pre><code>  apiVersion: skaffold/v4beta1
  kind: Config
  manifests:
  rawYaml:
    - ./infra/k8s/*
</code></pre>
<p>.yaml for reference</p>
<pre><code>apiVersion: skaffold/v3alpha1
kind: Config
build:
  artifacts:
    - image: ajochope/auth
      context: auth
      docker:
        dockerfile: Dockerfile
      sync:
        manual:
          - src: &quot;src/**/*.js&quot;
            dest: .
manifests:
  rawYaml:
  - ./infra/k8s/*
deploy:
  kubectl: {}
</code></pre>
<p>Cheers!!</p>
