chore(helm): add worker deployment template

This commit is contained in:
2025-01-16 12:00:00 -05:00
parent f61eb6a79b
commit ae037b8ae9

View 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 }}