<p>I have one google cloud project, but have 2 different kubernetes clusters. Each of these clusters have one node each. </p>

<p>I would like to deploy an application to a specific kubernetes cluster. The deployment defaults to the other cluster. How can I specify which kubernetes cluster to deploy my app to?</p>

user2405589
<p>See the cluster with which kubectl is currently communicating:</p>

<pre><code>kubectl config current-context
</code></pre>

<p>Set the cluster with which you want kubectl to communicate:</p>

<pre><code>kubectl config use-context my-cluster-name
</code></pre>

<p>See official docs <a href="https://kubernetes.io/docs/reference/kubectl/cheatsheet/" rel="nofollow noreferrer">here</a> for more details </p>
