From 1ddd1f0b3c7833ba6748f294d65c53d1c932ebe0 Mon Sep 17 00:00:00 2001 From: n8wb Date: Tue, 18 Feb 2025 16:19:06 -0800 Subject: [PATCH] add in the config.json --- ops/chart/templates/deployment.yaml | 16 ++++++++++++++-- ops/chart/values.staging.relayer.yaml | 13 ++++++++++--- ops/chart/values.yaml | 2 +- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/ops/chart/templates/deployment.yaml b/ops/chart/templates/deployment.yaml index c925f75..fb78f3f 100644 --- a/ops/chart/templates/deployment.yaml +++ b/ops/chart/templates/deployment.yaml @@ -69,11 +69,11 @@ spec: value: {{ $.Values.version | quote }} - name: VERBOSITY value: {{ $.Values.verbosity }} - - name: SECRETS - value: {{ join "," .secrets | quote }} - name: PROJECT_ID value: {{ $.Values.projectId }} +{{- if $.Values.environment }} {{ toYaml $.Values.environment | indent 12 }} +{{- end }} {{- if .environment }} {{ toYaml .environment | indent 12 }} {{- end }} @@ -83,6 +83,18 @@ spec: {{- toYaml .resources | nindent 14 }} requests: {{- toYaml .resources | nindent 14 }} + volumeMounts: + {{- range .secretMounts }} + - name: "{{ .name }}-volume" + mountPath: "{{ .mount }}" + readOnly: true + {{- end }} + volumes: + {{- range .secretMounts }} + - name: "{{ .name }}-volume" + secret: + secretName: "{{ .name }}" + {{- end }} --- {{ end }} {{ end }} diff --git a/ops/chart/values.staging.relayer.yaml b/ops/chart/values.staging.relayer.yaml index 5d7d108..c543461 100644 --- a/ops/chart/values.staging.relayer.yaml +++ b/ops/chart/values.staging.relayer.yaml @@ -2,18 +2,25 @@ services: relayer: image: us-central1-docker.pkg.dev/oxbow-406621/privacy-pools-core/staging/relayer serviceAccount: relayer-staging - command: python3 - args: ["/app/main.py"] + command: node + args: ["dist/src/index.js"] + environment: + - name: CONFIG_PATH + value: /etc/secrets/config.json resources: cpu: 100m memory: 2Gi - + service: type: ClusterIP port: 80 protocol: TCP targetPort: 3000 + secretMounts: + - name: relayer-config-staging + mount: /etc/secrets/ + ingress: host: testnet-relayer.privacypools.com paths: diff --git a/ops/chart/values.yaml b/ops/chart/values.yaml index dbe36a4..42a0047 100644 --- a/ops/chart/values.yaml +++ b/ops/chart/values.yaml @@ -14,7 +14,7 @@ ingress: verbosity: WARN # Shared environment variables -environment: [] +environment: projectId: oxbow-406621 namespace: default \ No newline at end of file