ci: wait for node

This commit is contained in:
Michael Kriese 2024-08-16 14:37:06 +02:00
parent b54d07ef55
commit 81955e871d
No known key found for this signature in database
GPG key ID: F8D7748549A5986A

View file

@ -15,9 +15,11 @@ runs:
run: | run: |
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=${INPUT_VERSION} K3S_KUBECONFIG_MODE=640 sh -s - server curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=${INPUT_VERSION} K3S_KUBECONFIG_MODE=640 sh -s - server
echo "KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> $GITHUB_ENV echo "KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> $GITHUB_ENV
- shell: bash
name: wait for nodes
run: kubectl wait --for=condition=Ready nodes --all --timeout=600s
- shell: bash - shell: bash
name: check k3s name: check k3s
run: kubectl cluster-info run: kubectl cluster-info
- shell: bash
name: wait for nodes ready
run: |
sleep 3
kubectl wait --for=condition=Ready nodes --all --timeout=600s