<p>In the <a href="https://skaffold.dev/docs/environment/local-cluster/" rel="nofollow noreferrer">skaffold documentation</a> it says it will auto-detect a local cluster based upon the kubernetes context and, if it is not a local-cluster, it will push to a container repo.</p>
<p>I am running skaffold on a Mac, I do not see that behavior.  When I run it with <code>skaffold run</code> on minikube, it does what I expect. But when I change the context to my remote cluster, it does not push the image to the remote container registry.  I'm somewhat new to skaffold so I would love any ideas on how to debug this or anything that might cause this behavior.</p>
<p>Edit: adding my ~/.skaffold/config file</p>
<pre class="lang-yaml prettyprint-override"><code>global:
  local-cluster: true
  survey:
    last-prompted: &quot;2021-01-18T14:06:13-05:00&quot;
kubeContexts:
- kube-context: minikube
  local-cluster: true
</code></pre>

Mike Nishizawa
<p>Setting <code>local-cluster: true</code> in your <code>~/.skaffold/config</code> instructs Skaffold to treat that cluster as a local-cluster.  When in the <code>global</code> section, Skaffold will treat <em>all</em> clusters as local.</p>
