https://rancher.com/ logo
Title
h

happy-nightfall-71899

10/31/2022, 5:19 PM
Hi there - does anybody know what does it means when kubectl can parse the config file produced by Rancher, but then also reports that the configuration is invalid? (This is being executed on the rancher VM)
~/.kube # kubectl config view
I1028 18:01:07.165096 14222 versioner.go:58] invalid configuration: no configuration has been provided
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: DATA+OMITTED
server:
<https://X.X.X.X:6443>
name: rancher-desktop
contexts:
- context:
cluster: rancher-desktop
user: rancher-desktop
name: rancher-desktop
current-context: ""
kind: Config
preferences: {}
users:
- name: rancher-desktop
user:
client-certificate-data: REDACTED
client-key-data: REDACTED
~/.kube #
1
Had to recreate the config file from scratch and then it worked. Config issue in the default kubeconfig file? Strange.