kubectl
- Context:
kubectl config current-context, ns:kubectl get ns - Resources:
kubectl get pods -A,kubectl get svc,deploy - Detail:
kubectl describe pod <name> - Logs:
kubectl logs -f <pod> [-c container] - Exec:
kubectl exec -it <pod> -- sh - Apply:
kubectl apply -f manifest.yaml; deletekubectl delete -f manifest.yaml - Scale:
kubectl scale deploy/<name> --replicas=3