chore(dispatch) restructuring values
This commit is contained in:
parent
b2d107839f
commit
c066b695cd
6 changed files with 41 additions and 26 deletions
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v2
|
||||
name: dispatch
|
||||
description: Netflix Dispatch incident management system
|
||||
version: 0.2.1
|
||||
version: 0.2.2
|
|
@ -25,8 +25,15 @@ spec:
|
|||
- name: core
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command: {{ .Values.core.container.command }}
|
||||
env: {{ .Values.core.container.env }}
|
||||
env:
|
||||
- name: DISPATCH_UI_URL
|
||||
value: {{ .Values.url }}
|
||||
- name: DATABASE_HOSTNAME
|
||||
value: {{ .Values.postgres.hostname }}
|
||||
- name: DATABASE_PORT
|
||||
value: {{ .Values.postgres.port }}
|
||||
- name: DATABASE_NAME
|
||||
value: {{ .Values.postgres.database_name }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ .Values.envFromSecret }}
|
||||
|
|
|
@ -19,8 +19,16 @@ spec:
|
|||
- name: scheduler
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command: {{ .Values.scheduler.container.command }}
|
||||
env: {{ .Values.scheduler.container.env }}
|
||||
command: ["dispatch", "scheduler", "start"]
|
||||
env:
|
||||
- name: DISPATCH_UI_URL
|
||||
value: {{ .Values.url }}
|
||||
- name: DATABASE_HOSTNAME
|
||||
value: {{ .Values.postgres.hostname }}
|
||||
- name: DATABASE_PORT
|
||||
value: {{ .Values.postgres.port }}
|
||||
- name: DATABASE_NAME
|
||||
value: {{ .Values.postgres.database_name }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ .Values.envFromSecret }}
|
||||
|
|
|
@ -19,14 +19,23 @@ spec:
|
|||
- name: web-db-init
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
command: ["dispatch", "web", "database", "init"]
|
||||
|
||||
containers:
|
||||
- name: web
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command: {{ .Values.web.container.command }}
|
||||
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
|
||||
ports:
|
||||
- containerPort: {{ .Values.web.container.port }}
|
||||
env: {{ .Values.web.container.env }}
|
||||
- containerPort: 8000
|
||||
env:
|
||||
- name: DISPATCH_UI_URL
|
||||
value: {{ .Values.url }}
|
||||
- name: DATABASE_HOSTNAME
|
||||
value: {{ .Values.postgres.hostname }}
|
||||
- name: DATABASE_PORT
|
||||
value: {{ .Values.postgres.port }}
|
||||
- name: DATABASE_NAME
|
||||
value: {{ .Values.postgres.database_name }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ .Values.envFromSecret }}
|
||||
|
|
|
@ -8,7 +8,7 @@ spec:
|
|||
type: {{ .Values.web.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.web.service.port }}
|
||||
targetPort: {{ .Values.web.container.port }}
|
||||
targetPort: 8000
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: {{ include "dispatch.fullname" . }}-web
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
envFromSecret: dispatch-secret
|
||||
envFromSecret: *secret dispatch-secret
|
||||
|
||||
image:
|
||||
repository: ghcr.io/tommy-skaug/dispatch
|
||||
|
@ -12,34 +12,25 @@ initContainers:
|
|||
tag: "16"
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: dispatch-secret
|
||||
name: &secret
|
||||
|
||||
url: http://localhost:80
|
||||
|
||||
core:
|
||||
enabled: true
|
||||
container:
|
||||
env: []
|
||||
|
||||
|
||||
web:
|
||||
enabled: true
|
||||
container:
|
||||
port: 8000
|
||||
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
|
||||
env: []
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
||||
scheduler:
|
||||
enabled: true
|
||||
container:
|
||||
command: ["dispatch", "scheduler", "start"]
|
||||
env: []
|
||||
|
||||
postgres:
|
||||
hostname: "postgres-rw.databases.svc.cluster.local"
|
||||
database_name: "postgres"
|
||||
database_name: "dispatch"
|
||||
port: "5432"
|
||||
secretRef:
|
||||
name: dispatch-secret
|
||||
name: &secret
|
Loading…
Reference in a new issue