darxkies / k8s-tew

Kubernetes - The Easier Way
GNU General Public License v3.0
307 stars 38 forks source link

Install k8s-tew without updating environment or running as a service #8

Closed leonj1 closed 5 years ago

leonj1 commented 5 years ago

I went through the install and usage instructions, only to find that KUBECONFIG was being set in /etc/environment. Also noticed k8s-tew creates a systemd service where its installed. I find this a bit intrusive since no other Kubernetes commands/apps do such a thing. Its too forceful. Makes assumptions this is what I wanted. I do not see a reason why this cannot be a free standing cli that can be executed from anywhere as long as its in the user's PATH.

As is, I cannot use this anywhere other than a homelab since it makes too many undesirable changes to the system. No other Kubernetes cli tools does this: kubectl, istioctl, etc, and all manage to work with Kube clusters just fine. I cannot raise a PR since I do not know if these changes are absolute requirements for k8s-tew to work. If so, that would be unfortunate.

leonj1 commented 5 years ago

Closing this since I believe this was user error (me). Setting this helped

export K8S_TEW_BASE_DIRECTORY=`pwd`