Some bits and pieces of useful commands for working with k8s
Last active
October 19, 2024 08:40
-
-
Save rubberduck203/2869a0a38cbd0ed506db9bec880fb84d to your computer and use it in GitHub Desktop.
Cordon all Kubernetes Nodes
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 nodes | awk '{if (NR!=1) {print $1}}' | xargs -I {} kubectl cordon {} |
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 -n $NAMESPACE get svc $SVC | awk 'NR > 1 {print $5}' | cut -f 2 -d ":" | cut -f 1 -d "/" | \ | |
xargs -I {} echo http://$(minikube ip):{} | chrome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment