How to get server url from kub dashboard?
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.