Skip to content

Conversation

@KashifSaadat
Copy link
Contributor

@KashifSaadat KashifSaadat commented Jul 20, 2017

Added 'keto get config' command, which generates the kube admin config for a given cluster.

Example use:

keto get config --cloud aws --cluster testcluster01 --assets-dir /home/kash/ketoassets/ --output-file kube.cfg

Optional flags:
--assets-dir: Defaults to current working directory
--output-file: Defaults to stdout

It checks for ca.crt & ca.key (specifically required by kubeadm), and will create symlinks from your kube_ca.crt & kube_ca.key if they exist to save you the hassle.
Will check for presence of the kubeadm binary and error with a curl command to retrieve it (the url is built, but if the binary doesn't exist for your distro then the link won't work).

@vaijab
Copy link
Contributor

vaijab commented Jul 20, 2017

Interesting, I'll have a look when I get a minute.

@jaykeshur jaykeshur mentioned this pull request Jul 21, 2017
19 tasks
@KashifSaadat KashifSaadat force-pushed the keto-generate-kube-config branch from af722f0 to df9ae30 Compare July 26, 2017 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants