...
Create EKS context. Run the command below. You don’t need to run this command again once the context is created.
Code Block aws eks update-kubeconfig --region ap-southeast-2 --name <your cluster name> --profile cloudservice
Get all kubectl contexts available.
Code Block kubectl config get-contexts
Select the context for the cluster that you want to work on.
Code Block kubectl config use-context <context name>
Test the connection.
Code Block kubectl get namespace