File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
dev/preview/infrastructure Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ resource "google_compute_address" "static-preview-ip" {
7777locals {
7878 vm_name = " preview-${ var . preview_name } "
7979 bootstrap_script = templatefile (" ${ path . module } /../../scripts/bootstrap-k3s.sh" , {
80- vm_name = local.vm_name
80+ vm_name = local.vm_name
81+ preview_name = var.preview_name
8182 })
8283
8384 trustmanager_script = file (" ${ path . module } /../../scripts/install-trustmanager.sh" )
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export INSTALL_K3S_SKIP_DOWNLOAD=true
99SERVICE_DNS_IP=" $( hostname -I | cut -d ' ' -f1) "
1010export SERVICE_DNS_IP
1111
12+ # shellcheck disable=SC2154
1213/usr/local/bin/install-k3s.sh \
1314 --token " 1234" \
1415 --node-ip " $SERVICE_DNS_IP " \
@@ -24,6 +25,7 @@ export SERVICE_DNS_IP
2425 --kubelet-arg cgroup-driver=systemd \
2526 --kubelet-arg feature-gates=LocalStorageCapacityIsolationFSQuotaMonitoring=true \
2627 --kube-apiserver-arg feature-gates=LocalStorageCapacityIsolationFSQuotaMonitoring=true \
28+ --tls-san " ${preview_name} .preview.gitpod-dev.com" \
2729 --cluster-init
2830
2931# Seems like this is a bit flaky now, with k3s not always being ready, and the labeling
You can’t perform that action at this time.
0 commit comments