Created
August 20, 2020 15:12
-
-
Save hieu-tn/189a4f01b5bbc929872072c6f735b6e4 to your computer and use it in GitHub Desktop.
k8s commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods -n your_namespace | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n your_namespace | |
kubectl describe service ingress-nginx-controller -n ingress-nginx | |
kubectl get ingress --all-namespaces | |
kubectl get svc --all-namespaces | |
kubectl get deployment --all-namespaces | |
kubectl get ingress --all-namespaces | |
kubectl describe deployment ingress-nginx-controller -n ingress-nginx | |
kubectl get node --all-namespaces | |
kubectl scale --replicas=0 deployment your_deployment -n your_namespace | |
kubectl get pod -n your_namespace | |
kubectl logs your_pod_name -n your_namespace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment