Create namespace kubectl
Create a new namespace; idempotent with --dry-run=client | apply
kubectl create namespace <ns>
more kubectl
all 73 commands →
Set resource requests/limits
kubectl set resources deployment/<name> -c <container> --requests=cpu=100m,memory=128Mi --limits=cpu=500m,memory=512Mi -n <ns>
Run one-off pod
kubectl run tmp --image=nicolaka/netshoot -it --rm --restart=Never -n <ns> -- bash
Get node labels
kubectl get nodes --show-labels
Uncordon a node
kubectl uncordon <node>
Get HPA status
kubectl get hpa -A