Closed blainehansen closed 10 months ago
I figured out a solution. By first logging into a root shell with sudo su
and then performing gloud auth login
, I've created credentials for my root user. Now my normal kubefwd command works properly from either my personal shell or the root shell.
However this likely should be added as a feature request. It would be nice if kubefwd
used the gcloud credentials of the actual invoking user, not the root user.
I'm trying to run this command:
This is the output I get:
All other kubernetes/gcloud commands work. I have already successfully authenticated with
gcloud auth login
, and am able to use commands likekubectl
andk9s
etc to see this cluster.Here's what I think the most important piece of information is: When I run
gke-gcloud-auth-plugin
as myself, it works. However when I do so in a root shell aftersudo su
, I get the same error as above.When I run
sudo kubefwd svc -n staging
without the-c ~/.kube/config
portion I get this error (which makes sense):Your help will be much appreciated!