Create namespace
Create a new namespace; idempotent with --dry-run=client | apply
kubectl create namespace <ns>
More kubectl commands
-
kubectl set resources deployment/<name> -c <container> --requests=cpu=100m,memory=128Mi --limits=cpu=500m,memory=512Mi -n <ns>Update resource requests and limits on a running deployment
-
kubectl run tmp --image=nicolaka/netshoot -it --rm --restart=Never -n <ns> -- bashEphemeral pod for debugging; deleted on exit
-
kubectl get nodes --show-labelsSee all labels assigned to each node
-
kubectl uncordon <node>Re-enable scheduling on a previously cordoned node
-
kubectl get hpa -AHorizontal Pod Autoscaler current/desired replicas and metrics