Hi, we ran to the above issue during installation. Checked the referenced article - but the solution suggested is not our case. The user who is executing the command is root and the command "kubectl get ns" works fine
could you please suggest some solution
2 Antworten
I just into this issue. I login with my account and then do "sudo su - root" to become the root user. Running rtfctl shows that error. The issue is with that command, it does not carry over the logged in user's environment variables, specifically this one:
KUBECONFIG=/var/lib/gravity/local/packages/unpacked/gravitational.io/planet/5.5.35-11312/rootfs/etc/kubernetes/kubectl.kubeconfig
Becoming root using "sudo su" does and rtfctl works as expected.