Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'keto get config' functionality #99

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

2 participants