kubernetes-vagrant-coreos-cluster icon indicating copy to clipboard operation
kubernetes-vagrant-coreos-cluster copied to clipboard

Add kubectl to Linux boxes

Open jayunit100 opened this issue 8 years ago • 1 comments

This is a great project @pires .., one minor nit: Is there a reason why kubectl isn't available on the linux masters? It seems a little unweildy to need to need to manually install a matching kubectl client on the host when all the kube components are running on the VMs.

  • Maybe even a separate lightweight VM just for kubectl would be ok if the goal is to keep the master pure.

  • When setting up kubectl manually, for auth, where and how do you suggest we configure that from ? I suspect you have some automation for that laying around somewhere that maybe I can reuse .

Thanks!

core@master ~ $ sudo find / -name kubectl
/var/lib/docker/overlay2/dce1db959919a99abda204947bc7a655e181bafd6599cd492891b5b0a0aa720b/merged/usr/local/bin/kubectl
/var/lib/docker/overlay2/dce1db959919a99abda204947bc7a655e181bafd6599cd492891b5b0a0aa720b/merged/kubectl
/var/lib/docker/overlay2/bc61c624e4cfb9c295f1a3f7a6d719d8ccb7280a94ee73859bccfb26294636ca/merged/usr/local/bin/kubectl
/var/lib/docker/overlay2/bc61c624e4cfb9c295f1a3f7a6d719d8ccb7280a94ee73859bccfb26294636ca/merged/kubectl
/var/lib/docker/overlay2/f35b80e8b18265a934ad2568c5958c3014334de690038d5f69f6450bfac1e488/merged/usr/local/bin/kubectl
/var/lib/docker/overlay2/f35b80e8b18265a934ad2568c5958c3014334de690038d5f69f6450bfac1e488/merged/kubectl
/var/lib/docker/overlay2/7a510fae488f5d0c51627b0c2547ae4368f23c0fe479fcff5244e8ba8b314f11/merged/usr/local/bin/kubectl
/var/lib/docker/overlay2/7a510fae488f5d0c51627b0c2547ae4368f23c0fe479fcff5244e8ba8b314f11/merged/kubectl
/var/lib/docker/overlay2/1b9275bc5e172af2065c49457c1e04ea562053fa9bf8f9eaf4eee0373fa29901/diff/usr/local/bin/kubectl
/var/lib/docker/overlay2/1b9275bc5e172af2065c49457c1e04ea562053fa9bf8f9eaf4eee0373fa29901/diff/kubectl
/var/lib/docker/overlay2/07f93034c3ccdb5528ea17e42eee9b70ae82dda081c3fde847f94128db55930b/merged/usr/local/bin/kubectl
/var/lib/docker/overlay2/07f93034c3ccdb5528ea17e42eee9b70ae82dda081c3fde847f94128db55930b/merged/kubectl

jayunit100 avatar Jun 15 '17 12:06 jayunit100

kubectl is installed and configured (core user) in the master VM for Windows only. On Mac OS and Linux, kubectl is installed and configured (your user) into the host system.

Answering your question, there's no reason not to have it on the master VM besides me never needing it and no one else requesting for it. Feel free to open a PR that does it, glad to review.

pires avatar Jun 15 '17 14:06 pires