Right now, kubel works when the apropriate credential is part of ~/.kube. But it doesn't work,if I have KUBECONFIG environment variable pointing out to somewhere else (basically if it's not globally set). If you use something like direnv to have project specific environment variable, kubel doesn't work there. And at work, I usually have separate clusters each being managed in their own directory.
This PR adds supports for propagating environment variables and making kubel working in those environment. For EKS cluster, I have to often propagate some extra environment variables to make it work with kubel:
Right now,
kubel
works when the apropriate credential is part of~/.kube
. But it doesn't work,if I haveKUBECONFIG
environment variable pointing out to somewhere else (basically if it's not globally set). If you use something likedirenv
to have project specific environment variable, kubel doesn't work there. And at work, I usually have separate clusters each being managed in their own directory.This PR adds supports for propagating environment variables and making kubel working in those environment. For EKS cluster, I have to often propagate some extra environment variables to make it work with
kubel
: