sync: don't match the script PID when attempting to kill kubelet
@@ -132,7 +132,7 @@ spec:
echo "error: The downloaded node configuration is invalid, exiting" 2>&1
exit 1
fi
- if ! pgrep -U 0 -f 'hyperkube kubelet ' | xargs kill; then
+ if ! kill $(pgrep -U 0 -f '^/usr/bin/hyperkube kubelet ' | head -n1); then
echo "error: Unable to restart Kubelet" 2>&1