feat(dispatch) add enabled flags for the components. Separate secrets so that they can be referenced in each chart. Add a few initial notes.
This commit is contained in:
parent
542a00b1b8
commit
cde310d6bc
7 changed files with 30 additions and 23 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.5
|
version: 0.1.6
|
||||||
|
|
|
@ -1 +1,9 @@
|
||||||
NOTES.txt
|
This is Netflix Dispatch, an unofficial Helm Chart.
|
||||||
|
|
||||||
|
The chart has three components:
|
||||||
|
|
||||||
|
* core:
|
||||||
|
* scheduler:
|
||||||
|
* web:
|
||||||
|
|
||||||
|
More info: https://netflix.github.io/dispatch/
|
|
@ -1,8 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ include "dispatch.fullname" . }}-config
|
|
||||||
data:
|
|
||||||
POSTGRES_HOSTNAME: {{ .Values.postgres.hostname | quote }}
|
|
||||||
POSTGRES_DATABASE_NAME: {{ .Values.postgres.database_name | quote }}
|
|
||||||
POSTGRES_PORT: {{ .Values.postgres.port | quote }}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.core.enabled }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -26,7 +27,6 @@ spec:
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
command: {{ .Values.core.container.command }}
|
command: {{ .Values.core.container.command }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
|
||||||
name: {{ include "dispatch.fullname" . }}-config
|
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.core.secretRef.name }}
|
name: {{ .Values.core.container.envFrom.secretRef.name }}
|
||||||
|
{{- end }}
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.scheduler.enabled }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -20,7 +21,6 @@ spec:
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
command: {{ .Values.scheduler.command }}
|
command: {{ .Values.scheduler.command }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
|
||||||
name: {{ include "dispatch.fullname" . }}-config
|
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.scheduler.secretRef.name }}
|
name: {{ .Values.scheduler.container.envFrom.secretRef.name }}
|
||||||
|
{{- end }}
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.scheduler.enabled }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -26,7 +27,6 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.web.container.port }}
|
- containerPort: {{ .Values.web.container.port }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
|
||||||
name: {{ include "dispatch.fullname" . }}-config
|
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.web.secretRef.name }}
|
name: {{ .Values.web.container.envFrom.secretRef.name }}
|
||||||
|
{{- end }}
|
|
@ -13,23 +13,30 @@ initContainers:
|
||||||
name: dispatch-secret
|
name: dispatch-secret
|
||||||
|
|
||||||
core:
|
core:
|
||||||
|
enabled: true
|
||||||
secretRef:
|
secretRef:
|
||||||
name: dispatch-secret
|
name: dispatch-secret
|
||||||
|
|
||||||
web:
|
web:
|
||||||
|
enabled: true
|
||||||
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:
|
envFrom:
|
||||||
name: dispatch-secret
|
secretRef:
|
||||||
|
name: dispatch-secret
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
scheduler:
|
scheduler:
|
||||||
|
enabled: true
|
||||||
command: ["dispatch", "scheduler", "start"]
|
command: ["dispatch", "scheduler", "start"]
|
||||||
secretRef:
|
container:
|
||||||
name: dispatch-secret
|
command: ["dispatch", "scheduler"]
|
||||||
|
envFrom:
|
||||||
|
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