<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>As per this <a href="https://microk8s.io/docs/getting-started" rel="nofollow noreferrer">doc</a> , use deploy as <code>microk8s kubectl</code> instead mk.
This might not be taking the alias mk or else you have not done a proper alias.</p>
<blockquote>
<p>add an alias (append to ~/.bash_aliases) like this:
alias kubectl='microk8s kubectl'</p>
</blockquote>
<p>Then use as below and have a try :</p>
<pre><code>deploy:
  microk8s kubectl:
</code></pre>
<p>Refer to  this <a href="https://skaffold.dev/docs/references/yaml/" rel="nofollow noreferrer">skafold.yaml doc</a> for more information on yaml and also  you need to use the correct dest path (#destination path in the container where the files should be synced to..)</p>
<p>You can also check out <a href="https://cloud.google.com/code" rel="nofollow noreferrer">Cloud Code for IntelliJ and VS Code</a> or the online <a href="https://ide.cloud.google.com/" rel="nofollow noreferrer">Cloud Shell Editor</a> which provides skaffold.yaml editing assistance, including highlighting errors in the file.</p>
