You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update user under context in /etc/rancher/k3s/k3s.yaml with below:
- context:
cluster: default
user: keycloak
...
Run kubectl auth whoami
Ensure the error below is NOT observed
error: no Auth Provider found for name "oidc"
Replication
$ k3s -v
k3s version v1.31.2+k3s1 (6da20424)
go version go1.22.8
## Update kubeconfig file
$ sudo vi /etc/rancher/k3s/k3s.yaml
## Error is observed
$ kubectl auth whoami
error: no Auth Provider found for name "oidc"
Validation
$ k3s -v
k3s version v1.31.2+k3s-53d4dd85 (53d4dd85)
go version go1.22.8
## Update kubeconfig
$ sudo vi /etc/rancher/k3s/k3s.yaml
## Error is NOT observed, this is expected with dummy auth provider
$ kubectl auth whoami
Unable to connect to the server: No valid id-token, and cannot refresh without refresh-token
Backport fix for The "Standalone"-mode of oidc-login in the wrapped kubectl library fails, with: no Auth Provider found for name "oidc"
The text was updated successfully, but these errors were encountered: