With two terminal windows open, you’ll have to be careful when executing commands to ensure you are working with the correct cluster. In each terminal window, verify that you are connecting to the correct cluster by executing:
kubectl config get-contexts
This should produce out similar to this. It is difficult to see because the cluster names and credentials are long. You may have more than one line listed. However, the line that begins with the “*” is the current context (the cluster
kubectl will be connecting to) for the
CURRENT NAME CLUSTER AUTHINFO NAMESPACE * firstname.lastname@example.org@ha-1.us-east-2.eksctl.io ha-1.us-east-2.eksctl.io email@example.com@ha-1.us-east-2.eksctl.ioIn this case, the
kubectlcommand will be executed on the
Check in your two terminal windows to ensure that each terminal session is connecting to your two different clusters.