Work around bug where ds pods are restarted on host start
@@ -70,6 +70,9 @@ done
echo "Nodes are ready:"
kubectl get nodes
+echo "Work around bug https://github.com/kubernetes/kubernetes/issues/31123: Force a recreate of the discovery pods"
+kubectl delete pods -n kube-system -l k8s-app=kube-discovery
+sleep 10
while [ -n "$(kubectl get pods -n kube-system --no-headers | grep -v Running)" ]; do
echo "Waiting for kubernetes pods to become ready ..."
kubectl get pods -n kube-system --no-headers | >&2 grep -v Running
