This is because I use a different file for each cluster that I'm interested in connecting to and set $KUBECONFIG to the appropriate path. It pairs well with direnv, automatically changing the context based on the project I'm working on. I have taken for granted the fact that most Kubernetes tooling respects the $KUBECONFIG environment variable.
In order to actually use cyphernetes, I symlinked my config file:
ln -sf $KUBECONFIG ~/.kube/config
After doing this, I was finally able to use the tool! It seems very cool.
I think it would be useful to check that environment variable in case others use k8s tooling the same way I do.
I had a very difficult time getting this tool to work. I kept getting this sort of error:
Based on the error message, I manually exported
KUBERNETES_MASTER
to my cluster's API server, but I continued to get errors.Eventually I checked the contents of my
~/.kube/config
file, and it was "emtpy":This is because I use a different file for each cluster that I'm interested in connecting to and set
$KUBECONFIG
to the appropriate path. It pairs well withdirenv
, automatically changing the context based on the project I'm working on. I have taken for granted the fact that most Kubernetes tooling respects the$KUBECONFIG
environment variable.In order to actually use
cyphernetes
, I symlinked my config file:After doing this, I was finally able to use the tool! It seems very cool.
I think it would be useful to check that environment variable in case others use k8s tooling the same way I do.