Skip to content

Commit 256ef28

Browse files
committed
more sleep more happy
1 parent fc7ebee commit 256ef28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dev/preview/infrastructure/scripts/bootstrap-k3s.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ export INSTALL_K3S_SKIP_DOWNLOAD=true
2424

2525
# Seems like this is a bit flaky now, with k3s not always being ready, and the labeling
2626
# failing occasionally. Sleeping for a bit solves it.
27-
sleep 10
27+
sleep 30
2828

29+
# shellcheck disable=SC2154
30+
# shellcheck disable=SC2086
2931
kubectl label nodes ${vm_name} \
3032
gitpod.io/workload_meta=true \
3133
gitpod.io/workload_ide=true \
@@ -39,10 +41,13 @@ kubectl label nodes ${vm_name} \
3941

4042
# apply fix from https://github.com/k3s-io/klipper-lb/issues/6 so we can use the klipper servicelb
4143
# this can be removed if https://github.com/gitpod-io/gitpod-packer-gcp-image/pull/20 gets merged
44+
# shellcheck disable=SC2002
45+
# shellcheck disable=SC1001
4246
cat /var/lib/gitpod/manifests/calico.yaml | sed s/__KUBERNETES_NODE_NAME__\"\,/__KUBERNETES_NODE_NAME__\",\ \"container_settings\"\:\ \{\ \"allow_ip_forwarding\"\:\ true\ \}\,/ >/var/lib/gitpod/manifests/calico2.yaml
4347

4448
sed -i 's/docker.io/quay.io/g' /var/lib/gitpod/manifests/calico2.yaml
4549
sed -i 's/interface=ens/interface=en/g' /var/lib/gitpod/manifests/calico2.yaml
50+
# shellcheck disable=SC2016
4651
sed -i 's/\$CLUSTER_IP_RANGE/10.20.0.0\/16/g' /var/lib/gitpod/manifests/calico2.yaml
4752

4853
kubectl apply -f /var/lib/gitpod/manifests/calico2.yaml

0 commit comments

Comments
 (0)