diff --git a/helm/incidentops/templates/worker-deployment.yaml b/helm/incidentops/templates/worker-deployment.yaml new file mode 100644 index 0000000..657edad --- /dev/null +++ b/helm/incidentops/templates/worker-deployment.yaml @@ -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 }}