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

Auth fix for kops>=1.19 #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Auth fix for kops>=1.19 #67

wants to merge 1 commit into from

Conversation

ihlec
Copy link

@ihlec ihlec commented Dec 14, 2021

My KOps was unable to auth in the validation step.
I added a line to remind KOps to use the admin user.

# Wait for worker nodes and master to be ready
kops export kubecfg --admin --name $CLUSTER_NAME 
kops validate cluster --wait 20m

@ihlec
Copy link
Author

ihlec commented Dec 14, 2021

I just found that it addresses the same issue as: a80eab4

@cskiraly
Copy link

cskiraly commented Aug 3, 2022

same here with kops 1.24.1
I had to add --admin

cskiraly added a commit to cskiraly/testground-infra that referenced this pull request Aug 3, 2022
```
W0803 01:46:29.410530   53470 update_cluster.go:350] Exported kubeconfig with no user authentication; use --admin, --user or --auth-plugin flags with `kops export kubeconfig`
[…]
W0803 01:54:07.680800   53632 validate_cluster.go:184] (will retry): unexpected error during validation: error listing nodes: Unauthorized
```

Solution based on:
testground#67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants