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 Answer
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.
-
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– ogbofjnrCommented Mar 19, 2020 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. Commented Mar 19, 2020 at 15:25