add in the config.json

This commit is contained in:
n8wb
2025-02-18 16:19:06 -08:00
parent 8afcd2dcd9
commit 1ddd1f0b3c
3 changed files with 25 additions and 6 deletions

View File

@@ -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 }}

View File

@@ -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:

View File

@@ -14,7 +14,7 @@ ingress:
verbosity: WARN
# Shared environment variables
environment: []
environment:
projectId: oxbow-406621
namespace: default