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

Cant connect to k9s cluster on Windows 11, same config works on Win 10 #2891

Open
a-hulman opened this issue Sep 23, 2024 · 1 comment
Open

Comments

@a-hulman
Copy link




Describe the bug
Cannot connect to k8s cluster with error message:
could not write the token cache
error: get-token: could not write the token cache: json encode error: write C:\Users\ms.kube\cache\oidc-login\bf9c25c4c80484990b52d02d273d9e8494af7188c62516c4770bcadc54b57035: The process cannot access the file because another process has locked a portion of the file.
Error: exit status 1

with subsequent
E0923 13:17:08.140367 22908 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://*******.com:6443/api?timeout=32s": getting credentials: exec: executable kubectl failed with exit code 1"

To Reproduce
Steps to reproduce the behavior:
Switching PCs I copied my k9s config, went through same install process:

  1. choco install k9s
  2. choco install kubernetes-cli
  3. choco install kubelogin
  4. open cmd in admin mode, run "kubectl get nodes"

Please note the same config/process works on my Laptop(Win10), but not no desktop (Win 11)

Historical Documents

Expected behavior
Connection to k8s cluster estabilished.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: Windows 11 Home 23H2
  • K9s: 0.32.5
  • kubectl: 1.31.1
  • kubelogin: 1.30.0 (win amd64)

Additional context
Authentication went ok - keycloak.

@a-hulman
Copy link
Author

OK, so seems to be related to int128/kubelogin#1144

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

No branches or pull requests

1 participant