Kubectl Cheat Sheet Pdf
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 cheat sheet pdf. Kubectl create namespace namespace to allow the master node to run pods. Contribute to dennyzhang cheatsheet kubernetes a4 development by creating an account on github. Run nginx deployment and expose it. And i cannot count the number of times i ve typed docker instead of kubectl.
Kubernetes cheat sheet how is this helpful. Kubectl run my nginx restart never image nginx port 80 expose. 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. Kubectl config get contexts kube config.
This kubernetes cheat sheet puts all key kubernetes commands think kubectl at your fingertips. To specify one pod use the command structure. Kubectl run my nginx image nginx port 80 expose. Kubectl config set context context name namespace ns name list pods with nodes.
Creating or listing pods services daemons viewing and finding resources to. These three commands will all generate the same outcome. Kubectl autocomplete source kubectl completion bash setup autocomplete in bash bash completion package should be installed first. To create a namespace.
An all in one pdf to keep at hand. 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. Kubectl overview and jsonpath guide. Thanks for taking the time to create this useful cheat sheet.
This page is an overview of the kubectl command. I have an annoying habit of typing git instead of docker especially when doing a pull push. Organized in logical groups from resource management e g. Download a printable pdf of the cheat sheet.
Source kubectl completion zsh setup autocomplete in zsh. Echo source kubectl completion bash bashrc add autocomplete permanently to your bash shell. We have covered all the basics of kubernetes in this kubernetes cheat sheet.