Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to the cluster #42

Open
Puneeth-n opened this issue May 9, 2023 · 1 comment
Open

Unable to connect to the cluster #42

Puneeth-n opened this issue May 9, 2023 · 1 comment
Labels
bug Something isn't working triage

Comments

@Puneeth-n
Copy link

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 Puneeth-n added bug Something isn't working triage labels May 9, 2023
@bryantbiggs
Copy link
Member

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 brybiggs@amazon.com as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants