mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
4cc781b5e3
* Moved testing utils into tests directory. Improved gotests template. * Updated cgroups2 with util folder rename Signed-off-by: dereknola <derek.nola@suse.com>
18 lines
457 B
Bash
Executable File
18 lines
457 B
Bash
Executable File
#!/bin/bash
|
|
# Wait for CoreDNS pods to be ready.
|
|
|
|
set -x
|
|
echo "Waiting for CoreDNS pods to be ready..."
|
|
counter=0
|
|
# `kubectl wait` fails when the pods with the specified label are not created yet
|
|
until kubectl wait --for=condition=ready pods --namespace=kube-system -l k8s-app=kube-dns; do
|
|
((counter++))
|
|
if [[ $counter -eq 20 ]]; then
|
|
echo "CoreDNS not running?"
|
|
kubectl get pods -A
|
|
kubectl get nodes -o wide
|
|
exit 1
|
|
fi
|
|
sleep 10
|
|
done
|