Skip to content

Commit

Permalink
feat: Set G_HOST_IP to allow GORILLA_STATSD_HOST to point to it (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramit-wandb authored Feb 1, 2024
1 parent 9ce92f2 commit 4182e7f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 6 additions & 1 deletion charts/operator-wandb/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -220,4 +225,4 @@ spec:
- key: REDIS_CA_CERT
path: redis_ca.pem
{{- end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -78,4 +84,4 @@ spec:

resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/operator-wandb/charts/parquet/templates/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -121,4 +126,4 @@ spec:
- key: REDIS_CA_CERT
path: redis_ca.pem
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 4182e7f

Please sign in to comment.