Kubectl Cheat Sheet Pdf
Kubernetes cheat sheet how is this helpful.
Kubectl cheat sheet pdf. Echo source kubectl completion bash bashrc add autocomplete permanently to your bash shell. Contribute to dennyzhang cheatsheet kubernetes a4 development by creating an account on github. Kubectl taint nodes all node role kubernetes io master allow kubernetes master nodes to run pods kubeadm reset reset current state kubectl get secrets list all secrets. Creating or listing pods services daemons viewing and finding resources to.
I have an annoying habit of typing git instead of docker especially when doing a pull push. Kubernetes cheatsheets in a4. Kubectl config set context context name namespace ns name list pods with nodes. Organized in logical groups from resource management e g.
Kubectl overview and jsonpath guide. This kubernetes cheat sheet puts all key kubernetes commands think kubectl at your fingertips. Kubectl run my nginx restart never image nginx port 80 expose. Thanks for taking the time to create this useful cheat sheet.
Kubectl run po name find the most useful commands grouped in terms of purpose and a full list of the objects you can adapt with kubectl in our attached kubectl commands cheat sheet here. Kubectl cheat sheet kubectl autocomplete bash source kubectl completion bash setup autocomplete in bash into the current shell bash completion package should be installed first. Kubectl overview and jsonpath guide. Kubectl create namespace namespace to allow the master node to run pods.
To create a namespace. To specify one pod use the command structure. An all in one pdf to keep at hand. Run nginx deployment and expose it.
Source kubectl completion zsh setup autocomplete in zsh. And i cannot count the number of times i ve typed docker instead of kubectl. Kubectl autocomplete source kubectl completion bash setup autocomplete in bash bash completion package should be installed first. These three commands will all generate the same outcome.
Kubectl config get contexts kube config. Kubectl run my nginx image nginx port 80 expose. Kubectl get all all nam espaces shows all objects of all namespaces kubectl get pods all nam espaces shows pods of all namespaces kubectl get pods n name space shows pods of a namespace eg kubectl get all n kube s ystem shows objects of system name space kubectl get namespaces show all namspaces.