eksup icon indicating copy to clipboard operation
eksup copied to clipboard

Unable to connect to the cluster

Open Puneeth-n opened this issue 1 year ago • 1 comments

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

  1. Set AWS creds as environment variables, try to run the aws eks update-kubeconfig --name <cluster-name>
  2. 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

Puneeth-n avatar May 09 '23 07:05 Puneeth-n

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

bryantbiggs avatar May 10 '23 12:05 bryantbiggs