Kubernetes Cheat Sheet

A cheat sheet for Kubernetes commands for beginners. Note: This is a WIP!

This page assumes you have access to kubectl (Eg from your Master node).

Get a list of Nodes:

kubectl get nodes

List of running Pods on all Namespaces:

kubectl get pods --all-namespaces

Print kubectl join command:

kubeadm token create --print-join-command

Create Kubernetes items from yaml file:

kubectl create -f [name-of-your-file].yml

Delete Kubernetes items from yaml file:

kubectl delete -f [name-of-your-file].yml

Any comments or questions? Get in touch here or Email me at [email protected]