0

I have access to kubernetes dashboard on aws with token. And now I want to connect with kubectl, how to get server url for kubectl config?

1

When running an EKS cluster, the best way to configure your ~/.kube/config is by using the SDK's update-kubeconfig:

aws eks update-kubeconfig --name your-cluster-name

Make sure to configure your credentials as AWS_* environment variables. Or even better use something like aws-vault.

2
  • for this I need to have access to aws cli, but I only have access to kub dashboard, so I wonder if it possible to get kubernetes server api from there – ogbofjnr Mar 19 '20 at 15:14
  • You should be able to see the Cluster URL via the web console. Just navigate to your cluster via the EKS menu and look for the API Server URL. – davidmontoyago Mar 19 '20 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.