Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Give a name to load balancers and increase node count for production (#8939)
Antonio Scandurrae3a7192c1142
diff --git a/.github/workflows/deploy_collab.yml b/.github/workflows/deploy_collab.ymlindex 220c4ca6f70..e0783d08253 100644--- a/.github/workflows/deploy_collab.yml+++ b/.github/workflows/deploy_collab.yml@@ -104,8 +104,12 @@ jobs:set -euif [[ $GITHUB_REF_NAME = "collab-production" ]]; thenexport ZED_KUBE_NAMESPACE=production+ export ZED_COLLAB_LOAD_BALANCER_SIZE_UNIT=10+ export ZED_API_LOAD_BALANCER_SIZE_UNIT=2elif [[ $GITHUB_REF_NAME = "collab-staging" ]]; thenexport ZED_KUBE_NAMESPACE=staging+ export ZED_COLLAB_LOAD_BALANCER_SIZE_UNIT=1+ export ZED_API_LOAD_BALANCER_SIZE_UNIT=1elseecho "cowardly refusing to deploy from an unknown branch"exit 1@@ -120,11 +124,13 @@ jobs:export ZED_IMAGE_ID="registry.digitalocean.com/zed/collab:${GITHUB_SHA}"export ZED_SERVICE_NAME=collab+ export ZED_LOAD_BALANCER_SIZE_UNIT=$ZED_COLLAB_LOAD_BALANCER_SIZE_UNITenvsubst < crates/collab/k8s/collab.template.yml | kubectl apply -f -kubectl -n "$ZED_KUBE_NAMESPACE" rollout status deployment/$ZED_SERVICE_NAME --watchecho "deployed ${ZED_SERVICE_NAME} to ${ZED_KUBE_NAMESPACE}"export ZED_SERVICE_NAME=api+ export ZED_LOAD_BALANCER_SIZE_UNIT=$ZED_API_LOAD_BALANCER_SIZE_UNITenvsubst < crates/collab/k8s/collab.template.yml | kubectl apply -f -kubectl -n "$ZED_KUBE_NAMESPACE" rollout status deployment/$ZED_SERVICE_NAME --watchecho "deployed ${ZED_SERVICE_NAME} to ${ZED_KUBE_NAMESPACE}"diff --git a/crates/collab/k8s/collab.template.yml b/crates/collab/k8s/collab.template.ymlindex 7ade648adfe..38f09d2194a 100644--- a/crates/collab/k8s/collab.template.yml+++ b/crates/collab/k8s/collab.template.yml@@ -11,6 +11,8 @@ metadata:namespace: ${ZED_KUBE_NAMESPACE}name: ${ZED_SERVICE_NAME}annotations:+ service.beta.kubernetes.io/do-loadbalancer-name: "${ZED_SERVICE_NAME}-${ZED_KUBE_NAMESPACE}"+ service.beta.kubernetes.io/do-loadbalancer-size-unit: ${ZED_LOAD_BALANCER_SIZE_UNIT}service.beta.kubernetes.io/do-loadbalancer-tls-ports: "443"service.beta.kubernetes.io/do-loadbalancer-certificate-id: ${ZED_DO_CERTIFICATE_ID}service.beta.kubernetes.io/do-loadbalancer-disable-lets-encrypt-dns-records: "true"diff --git a/crates/collab/k8s/postgrest.template.yml b/crates/collab/k8s/postgrest.template.ymlindex f03c0ce33c4..ff83880a957 100644--- a/crates/collab/k8s/postgrest.template.yml+++ b/crates/collab/k8s/postgrest.template.yml@@ -5,6 +5,7 @@ metadata:namespace: ${ZED_KUBE_NAMESPACE}name: postgrestannotations:+ service.beta.kubernetes.io/do-loadbalancer-name: "postgrest-${ZED_KUBE_NAMESPACE}"service.beta.kubernetes.io/do-loadbalancer-tls-ports: "443"service.beta.kubernetes.io/do-loadbalancer-certificate-id: ${ZED_DO_CERTIFICATE_ID}service.beta.kubernetes.io/do-loadbalancer-disable-lets-encrypt-dns-records: "true"