Skip to main content

Kubernetes

kubectl

One command to create pod and service

kubectl run nginx --image=nginx --restart=Never --port=80 --expose

Create temporary busybox pod

kubectl run busybox --image=busybox --restart=Never --rm -it -- /bin/sh

Create manifests

kubectl create deployment whoami --image=traefik/whoami -o yaml --dry-run=client

Kubernetes JSON schemas