<p>I have minikube on my local machine for testing deployment and I ran commands like</p>
<pre><code>kubectl apply -f testingfile.yaml
</code></pre>
<p>and it worked fine. Now I want to perform the same on aws eks. I have followed all steps given in <a href="https://docs.aws.amazon.com/eks/latest/userguide/sample-deployment.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/eks/latest/userguide/sample-deployment.html</a>. Created a config file and added that to the path. Commands like <code>eksctl get cluster</code> are correctly listing the clusters from aws eks but now when I run</p>
<pre><code>kubectl apply -f testingfile.yaml
</code></pre>
<p>I am getting the following statement
<code>deployment.apps/testingfile unchanged</code> which means it is still applying the command inside minikube and not on aws eks. I have also deleted path variables related to minikube from environment variables but I am still unable to switch to aws eks for applying. I would like to deploy this on aws eks. Let me know what I am missing here</p>

user1048278
<p>Checking your existing cluster contexts</p>
<p>There will multiple contexts one for Minikube and One for EKS</p>
<pre><code>kubectl config get-contexs
</code></pre>
<p>change context to EKS if your config is set it will be there</p>
<pre><code>kubectl config use-context &lt;Name of context&gt;
</code></pre>
<p>this way you can get changed to another clusters.</p>
