chore(helm): add worker deployment template
This commit is contained in:
30
helm/incidentops/templates/worker-deployment.yaml
Normal file
30
helm/incidentops/templates/worker-deployment.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ include "incidentops.fullname" . }}-worker
|
||||||
|
labels:
|
||||||
|
{{- include "incidentops.labels" . | nindent 4 }}
|
||||||
|
app.kubernetes.io/component: worker
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.worker.replicas }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "incidentops.selectorLabels" . | nindent 6 }}
|
||||||
|
app.kubernetes.io/component: worker
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
{{- include "incidentops.selectorLabels" . | nindent 8 }}
|
||||||
|
app.kubernetes.io/component: worker
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: worker
|
||||||
|
image: "{{ .Values.worker.image }}:{{ .Values.worker.tag }}"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
env:
|
||||||
|
- name: ConnectionStrings__Postgres
|
||||||
|
value: {{ include "incidentops.postgresConnectionString" . | quote }}
|
||||||
|
- name: Redis__ConnectionString
|
||||||
|
value: {{ include "incidentops.redisConnectionString" . | quote }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml .Values.worker.resources | nindent 12 }}
|
||||||
Reference in New Issue
Block a user