eksup
eksup copied to clipboard
Unable to connect to the cluster
Expected Behaviour
eksup should analyze the cluster
Current Behaviour
Unable to connect to cluster. Ensure kubeconfig file is present and updated to connect to the cluster.
Code snippet
➜ foo AWS_REGION=eu-central-1 aws eks update-kubeconfig --name foo-bar-baz
Updated context arn:aws:eks:eu-central-1:1234567890:cluster/foo-bar-baz in /Users/lorem/.kube/config
➜ foo eksup analyze --cluster foo-bar-baz --region eu-central-1 -v
Error: Unable to connect to cluster. Ensure kubeconfig file is present and updated to connect to the cluster.
Try: aws eks update-kubeconfig --name foo-bar-baz
Possible Solution
read AWS creds from environment variables if provided
Steps to Reproduce
- Set AWS creds as environment variables, try to run the
aws eks update-kubeconfig --name <cluster-name>
- run the command:
eksup analyze --cluster <cluster name> --region <aws region>
eksup version
0.2.0-alpha3
Operating system
macOS x86_64
Error output
Error: Unable to connect to cluster. Ensure kubeconfig file is present and updated to connect to the cluster.
Try: aws eks update-kubeconfig --name foo-bar-baz
could you try enabling more verbose output with -vvvv
and sharing that - you can post it here (please ensure no sensitive information is shared) or you can also email it to me at [email protected] as well