coreos / coreos-kubernetes

CoreOS Container Linux+Kubernetes documentation & Vagrant installers
https://coreos.com/kubernetes/docs/latest/
Apache License 2.0
1.1k stars 466 forks source link

Documentation: add tips-and-tricks and initial fabric file #835

Closed philips closed 7 years ago

nstielau commented 7 years ago

I like it. I don't actually find much need to log into nodes though, and fab rocks but generally reminds my of the bad 👊 things I've done in automation's sake in the past. Your advanced jq is impressive tho.

philips commented 7 years ago

cc @joshix

coresolve commented 7 years ago

There is also a great resource here: https://kubernetes.io/docs/user-guide/kubectl-cheatsheet/ Which points out the completion stuff. A must have!!

$ source <(kubectl completion bash) # setup autocomplete in bash, bash-completion package should be installed first.
$ source <(kubectl completion zsh)  # setup autocomplete in zsh
philips commented 7 years ago

@coresolve all updated, LGTY?

coresolve commented 7 years ago

From a lesson learned you can also make a backup of the deployment by namespace with.

kubectl get all,daemonset,secret,configmap,ingress,job,role,rolebinding,clusterrole,clusterrolebinding -n your-namespace -o yaml > backup

And use that as a reference should you accidentally a service.

philips commented 7 years ago

@dutchiechris thanks, I moved this project over to https://github.com/coreos/fabric-kubernetes-nodes

@joshix I think this is ready to merge. cc @coreos/team-docs

zbwright commented 7 years ago

Hey - I'm going to close this PR, as it was not part of the 'Kubernetes Make it and Break it' doc rewrite. We can open it as a new PR in the new repo if it should be reconsidered.