From 7d5f40cd400f9bdb0ca56f515c3e0461a8a3cd93 Mon Sep 17 00:00:00 2001 From: Jonathan Pearlin Date: Wed, 14 Sep 2022 15:32:45 -0400 Subject: [PATCH] Add missing env var for Kube overlays (#16747) * Add missing env var for Kube overlays * Set env var in kube resource file --- kube/overlays/dev-integration-test/.env | 3 +++ kube/overlays/dev/.env | 3 +++ kube/overlays/stable-with-resource-limits/.env | 3 +++ kube/overlays/stable/.env | 3 +++ kube/resources/worker.yaml | 5 +++++ 5 files changed, 17 insertions(+) diff --git a/kube/overlays/dev-integration-test/.env b/kube/overlays/dev-integration-test/.env index 3e7b16ad5273..0769634122ed 100644 --- a/kube/overlays/dev-integration-test/.env +++ b/kube/overlays/dev-integration-test/.env @@ -57,6 +57,9 @@ NORMALIZATION_JOB_MAIN_CONTAINER_MEMORY_REQUEST= NORMALIZATION_JOB_MAIN_CONTAINER_CPU_LIMIT= NORMALIZATION_JOB_MAIN_CONTAINER_CPU_REQUEST= +# Worker # +WORKERS_MICRONAUT_ENVIRONMENTS=control + # Worker pod tolerations, annotations and node selectors JOB_KUBE_TOLERATIONS= JOB_KUBE_ANNOTATIONS= diff --git a/kube/overlays/dev/.env b/kube/overlays/dev/.env index 49aeeb02dc63..a7196e67b4bb 100644 --- a/kube/overlays/dev/.env +++ b/kube/overlays/dev/.env @@ -59,6 +59,9 @@ NORMALIZATION_JOB_MAIN_CONTAINER_MEMORY_REQUEST= NORMALIZATION_JOB_MAIN_CONTAINER_CPU_LIMIT= NORMALIZATION_JOB_MAIN_CONTAINER_CPU_REQUEST= +# Worker # +WORKERS_MICRONAUT_ENVIRONMENTS=control + # Worker pod tolerations, annotations and node selectors JOB_KUBE_TOLERATIONS= JOB_KUBE_ANNOTATIONS= diff --git a/kube/overlays/stable-with-resource-limits/.env b/kube/overlays/stable-with-resource-limits/.env index 9d6d3a3c16ff..083f6acde5f8 100644 --- a/kube/overlays/stable-with-resource-limits/.env +++ b/kube/overlays/stable-with-resource-limits/.env @@ -54,6 +54,9 @@ JOB_MAIN_CONTAINER_CPU_LIMIT= JOB_MAIN_CONTAINER_MEMORY_REQUEST= JOB_MAIN_CONTAINER_MEMORY_LIMIT= +# Worker # +WORKERS_MICRONAUT_ENVIRONMENTS=control + # Worker pod tolerations, annotations and node selectors JOB_KUBE_TOLERATIONS= JOB_KUBE_ANNOTATIONS= diff --git a/kube/overlays/stable/.env b/kube/overlays/stable/.env index c4606b525150..5cc98e7ac8a1 100644 --- a/kube/overlays/stable/.env +++ b/kube/overlays/stable/.env @@ -59,6 +59,9 @@ NORMALIZATION_JOB_MAIN_CONTAINER_MEMORY_REQUEST= NORMALIZATION_JOB_MAIN_CONTAINER_CPU_LIMIT= NORMALIZATION_JOB_MAIN_CONTAINER_CPU_REQUEST= +# Worker # +WORKERS_MICRONAUT_ENVIRONMENTS=control + # Worker pod tolerations, annotations and node selectors JOB_KUBE_TOLERATIONS= JOB_KUBE_ANNOTATIONS= diff --git a/kube/resources/worker.yaml b/kube/resources/worker.yaml index 02ceacb266e2..eb12062e12a2 100644 --- a/kube/resources/worker.yaml +++ b/kube/resources/worker.yaml @@ -280,6 +280,11 @@ spec: configMapKeyRef: name: airbyte-env key: USE_STREAM_CAPABLE_STATE + - name: MICRONAUT_ENVIRONMENTS + valueFrom: + configMapKeyRef: + name: airbyte-env + key: WORKERS_MICRONAUT_ENVIRONMENTS ports: - containerPort: 9000 # for heartbeat server - containerPort: 9001 # start temporal worker port pool