From 4182e7f96ecaab4f26e2935568b48042d3781796 Mon Sep 17 00:00:00 2001 From: Ramit Goolry <93002515+ramit-wandb@users.noreply.github.com> Date: Fri, 2 Feb 2024 01:18:31 +0530 Subject: [PATCH] feat: Set G_HOST_IP to allow GORILLA_STATSD_HOST to point to it (#71) --- charts/operator-wandb/Chart.yaml | 2 +- .../operator-wandb/charts/app/templates/deployment.yaml | 7 ++++++- .../charts/console/templates/deployment.yaml | 8 +++++++- charts/operator-wandb/charts/parquet/templates/cron.yaml | 5 +++++ .../charts/parquet/templates/deployment.yaml | 7 ++++++- 5 files changed, 25 insertions(+), 4 deletions(-) diff --git a/charts/operator-wandb/Chart.yaml b/charts/operator-wandb/Chart.yaml index f2d9b2c1..e48b88be 100644 --- a/charts/operator-wandb/Chart.yaml +++ b/charts/operator-wandb/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: operator-wandb description: A Helm chart for deploying W&B to Kubernetes type: application -version: 0.10.42 +version: 0.10.43 appVersion: 1.0.0 icon: https://wandb.ai/logo.svg diff --git a/charts/operator-wandb/charts/app/templates/deployment.yaml b/charts/operator-wandb/charts/app/templates/deployment.yaml index 95c98973..ee51884e 100644 --- a/charts/operator-wandb/charts/app/templates/deployment.yaml +++ b/charts/operator-wandb/charts/app/templates/deployment.yaml @@ -193,6 +193,11 @@ spec: fieldRef: fieldPath: metadata.namespace + - name: G_HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP + {{- include "app.extraEnv" (dict "global" $.Values.global "local" .Values) | nindent 12 }} {{- include "wandb.extraEnvFrom" (dict "root" $ "local" .) | nindent 12 }} livenessProbe: @@ -220,4 +225,4 @@ spec: - key: REDIS_CA_CERT path: redis_ca.pem {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/operator-wandb/charts/console/templates/deployment.yaml b/charts/operator-wandb/charts/console/templates/deployment.yaml index 210b2971..0a0e6502 100644 --- a/charts/operator-wandb/charts/console/templates/deployment.yaml +++ b/charts/operator-wandb/charts/console/templates/deployment.yaml @@ -60,6 +60,12 @@ spec: value: {{ $.Release.Namespace }} - name: PROMETHEUS_SERVER value: "http://{{ $.Release.Name }}-prometheus-server" + + - name: G_HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP + {{- include "console.extraEnv" (dict "global" .Values.global "local" .Values) | nindent 12 }} {{- include "wandb.extraEnvFrom" (dict "root" $ "local" .) | nindent 12 }} livenessProbe: @@ -78,4 +84,4 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/operator-wandb/charts/parquet/templates/cron.yaml b/charts/operator-wandb/charts/parquet/templates/cron.yaml index 64fecde7..69b789f5 100644 --- a/charts/operator-wandb/charts/parquet/templates/cron.yaml +++ b/charts/operator-wandb/charts/parquet/templates/cron.yaml @@ -125,6 +125,11 @@ spec: key: ACCESS_KEY optional: true + - name: G_HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP + {{- include "parquet.extraEnv" (dict "global" $.Values.global "local" .Values) | nindent 16 }} {{- include "wandb.extraEnvFrom" (dict "root" $ "local" .) | nindent 16 }} restartPolicy: Never diff --git a/charts/operator-wandb/charts/parquet/templates/deployment.yaml b/charts/operator-wandb/charts/parquet/templates/deployment.yaml index 7627cfbf..c7df2266 100644 --- a/charts/operator-wandb/charts/parquet/templates/deployment.yaml +++ b/charts/operator-wandb/charts/parquet/templates/deployment.yaml @@ -107,6 +107,11 @@ spec: key: ACCESS_KEY optional: true + - name: G_HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP + {{- include "parquet.extraEnv" (dict "global" .Values.global "local" .Values) | nindent 12 }} {{- include "wandb.extraEnvFrom" (dict "root" $ "local" .) | nindent 12 }} @@ -121,4 +126,4 @@ spec: - key: REDIS_CA_CERT path: redis_ca.pem {{- end }} -{{- end }} \ No newline at end of file +{{- end }}