kubernetes Cheat Sheet

Commands

kubectl get nodes
kubectl get services
kubectl get pods
kubectl get rc		# replication controllers

kubectl create -f some.json

kubectl get rc <node> -o yaml >some.yaml
kubectl uptate -f some.yaml

kubectl delete pod -l name=<name>

kubectl run-container <name> --image=<image> --port=<port>

kubectl resize --replicas=4 rc <name>

kubectl expose rc <name> --port=<port> --public-ip=<ip>