Skip to content

Commands

kube context

kubectl config view
kubectl config current-context
kubectl config use-context foo

ns context

kubectl config set-context --current --namespace bar

Rollouts

kubectl rollout pause deploy <m-name>
kubectl rollout resume deploy <m-name>
kubectl rollout history deployment <m-name>
kubectl rollout undo deployment <m-name> --to-revision=1

Services

kubectl expose deployment svc-test --type=LoadBalancer
kubectl get endpointslices
kubectl describe endpointslice <slice-name>