feat(dispatch) add secretref for each module
This commit is contained in:
parent
72b7a58a4a
commit
542a00b1b8
5 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: dispatch
|
name: dispatch
|
||||||
description: Netflix Dispatch incident management system
|
description: Netflix Dispatch incident management system
|
||||||
version: 0.1.4
|
version: 0.1.5
|
|
@ -29,4 +29,4 @@ spec:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "dispatch.fullname" . }}-config
|
name: {{ include "dispatch.fullname" . }}-config
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.postgres.secretRef.name }}
|
name: {{ .Values.core.secretRef.name }}
|
|
@ -23,4 +23,4 @@ spec:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "dispatch.fullname" . }}-config
|
name: {{ include "dispatch.fullname" . }}-config
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.postgres.secretRef.name }}
|
name: {{ .Values.scheduler.secretRef.name }}
|
|
@ -29,4 +29,4 @@ spec:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "dispatch.fullname" . }}-config
|
name: {{ include "dispatch.fullname" . }}-config
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.postgres.secretRef.name }}
|
name: {{ .Values.web.secretRef.name }}
|
|
@ -13,19 +13,23 @@ initContainers:
|
||||||
name: dispatch-secret
|
name: dispatch-secret
|
||||||
|
|
||||||
core:
|
core:
|
||||||
container:
|
secretRef:
|
||||||
command: []
|
name: dispatch-secret
|
||||||
|
|
||||||
web:
|
web:
|
||||||
container:
|
container:
|
||||||
port: 8000
|
port: 8000
|
||||||
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
|
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
|
||||||
|
secretRef:
|
||||||
|
name: dispatch-secret
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
scheduler:
|
scheduler:
|
||||||
command: ["dispatch", "scheduler", "start"]
|
command: ["dispatch", "scheduler", "start"]
|
||||||
|
secretRef:
|
||||||
|
name: dispatch-secret
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
hostname: "postgres-rw.databases.svc.cluster.local"
|
hostname: "postgres-rw.databases.svc.cluster.local"
|
||||||
|
|
Loading…
Reference in a new issue