Create a namespace
Creates a new namespace; with --dry-run=client | apply it becomes idempotent
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>Changes requests and limits of a running deployment without editing YAML
-
kubectl run tmp --image=nicolaka/netshoot -it --rm --restart=Never -n <ns> -- bashTemporary pod for debugging; deleted when you exit
-
kubectl get nodes --show-labelsLists all labels on each node
-
kubectl uncordon <node>Allows scheduling again on a node that was cordoned
-
kubectl get hpa -ACurrent and desired replicas and metrics of each Horizontal Pod Autoscaler