Skip to content

Commit 65ec493

Browse files
test
1 parent e04327e commit 65ec493

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dev/preview/infrastructure/modules/gce/vm.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ resource "google_compute_address" "static-preview-ip" {
7777
locals {
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")

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export INSTALL_K3S_SKIP_DOWNLOAD=true
99
SERVICE_DNS_IP="$(hostname -I | cut -d ' ' -f1)"
1010
export 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

0 commit comments

Comments
 (0)