File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
hotelReservation/noisy-neighbors Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 79
79
echo " === Operation completed ==="
80
80
if [ " $UNTOLERATE_MODE " == " true" ]; then
81
81
echo " The taint has been removed from node '$NODE_NAME ' and tolerations removed from deployment '$SERVICE_NAME '"
82
- echo
83
- echo " Verify with:"
84
- echo " kubectl describe node $NODE_NAME | grep -A5 Taints"
85
- echo " kubectl get deployment $SERVICE_NAME -o yaml | grep -A10 tolerations"
82
+ if [ " $RESTART_ALL " == " true" ]; then
83
+ echo " All deployments have been restarted and can now be scheduled on any available node"
84
+ fi
86
85
else
87
86
echo " The deployment '$SERVICE_NAME ' can now be scheduled on the tainted node '$NODE_NAME '"
88
- echo
89
- echo " Verify with:"
90
- echo " kubectl describe node $NODE_NAME | grep -A5 Taints"
91
- echo " kubectl get deployment $SERVICE_NAME -o yaml | grep -A10 tolerations"
92
- fi
87
+ if [ " $RESTART_ALL " == " true" ]; then
88
+ echo " All other deployments have been restarted and will avoid the tainted node (unless they have tolerations)"
89
+ fi
90
+ fi
91
+ echo
92
+ echo " Verify with:"
93
+ echo " kubectl describe node $NODE_NAME | grep -A5 Taints"
94
+ echo " kubectl get deployment $SERVICE_NAME -o yaml | grep -A10 tolerations"
95
+ echo " kubectl get pods -o wide # Check pod distribution across nodes"
You can’t perform that action at this time.
0 commit comments