feat(dispatch) add secretref for each module

This commit is contained in:
Tommy 2023-12-16 14:49:34 +01:00
parent 72b7a58a4a
commit 542a00b1b8
No known key found for this signature in database
5 changed files with 10 additions and 6 deletions

View file

@ -1,4 +1,4 @@
apiVersion: v2
name: dispatch
description: Netflix Dispatch incident management system
version: 0.1.4
version: 0.1.5

View file

@ -29,4 +29,4 @@ spec:
- configMapRef:
name: {{ include "dispatch.fullname" . }}-config
- secretRef:
name: {{ .Values.postgres.secretRef.name }}
name: {{ .Values.core.secretRef.name }}

View file

@ -23,4 +23,4 @@ spec:
- configMapRef:
name: {{ include "dispatch.fullname" . }}-config
- secretRef:
name: {{ .Values.postgres.secretRef.name }}
name: {{ .Values.scheduler.secretRef.name }}

View file

@ -29,4 +29,4 @@ spec:
- configMapRef:
name: {{ include "dispatch.fullname" . }}-config
- secretRef:
name: {{ .Values.postgres.secretRef.name }}
name: {{ .Values.web.secretRef.name }}

View file

@ -13,19 +13,23 @@ initContainers:
name: dispatch-secret
core:
container:
command: []
secretRef:
name: dispatch-secret
web:
container:
port: 8000
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
secretRef:
name: dispatch-secret
service:
type: ClusterIP
port: 80
scheduler:
command: ["dispatch", "scheduler", "start"]
secretRef:
name: dispatch-secret
postgres:
hostname: "postgres-rw.databases.svc.cluster.local"