Skip to content

Commit f5b534f

Browse files
committed
Remove calico hacks
Preview environments have public IP addresses, these are no longer needed, I think.
1 parent 2b9beaa commit f5b534f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export INSTALL_K3S_SKIP_DOWNLOAD=true
2626
# failing occasionally. Sleeping for a bit solves it.
2727
sleep 10
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 \
@@ -37,15 +39,9 @@ kubectl label nodes ${vm_name} \
3739
gitpod.io/workspace_1=true \
3840
gitpod.io/workspace_2=true
3941

40-
# apply fix from https://github.com/k3s-io/klipper-lb/issues/6 so we can use the klipper servicelb
41-
# this can be removed if https://github.com/gitpod-io/gitpod-packer-gcp-image/pull/20 gets merged
42-
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
42+
sed -i 's/docker.io/quay.io/g' /var/lib/gitpod/manifests/calico.yaml
4343

44-
sed -i 's/docker.io/quay.io/g' /var/lib/gitpod/manifests/calico2.yaml
45-
sed -i 's/interface=ens/interface=en/g' /var/lib/gitpod/manifests/calico2.yaml
46-
sed -i 's/\$CLUSTER_IP_RANGE/10.20.0.0\/16/g' /var/lib/gitpod/manifests/calico2.yaml
47-
48-
kubectl apply -f /var/lib/gitpod/manifests/calico2.yaml
44+
kubectl apply -f /var/lib/gitpod/manifests/calico.yaml
4945

5046
kubectl apply -f /var/lib/gitpod/manifests/cert-manager.yaml
5147
kubectl apply -f /var/lib/gitpod/manifests/metrics-server.yaml

0 commit comments

Comments
 (0)