Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # K8s tips
- * Get the pods behind one service
- ```
- kubectl get pods --show-labels | grep -F -f <(kubectl get svc --no-headers -o wide | awk '{print $7}')
- ```
- * Patch the deployment with a dummy annotation to force the update (only works with alwayspull policies)
- ```
- kubectl patch deployment $DEPNAME -p "{\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"date\":\"`date +'%s'`\"}}}}}"
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement