Skip to main content

Kubernetes

Kubectl

Get logs tail of a pod

kubectl logs -f pod_name
kubectl logs --tail=20 pod_name

Scale pod number

kubectl scale --replicas=0 deployment deploy-name

AKS

kubectl config use-context aks_cluster && kubectl config set-context --current --namespace=namespace && kubectl get po -o wide