From 0b7b5e248ed8559cc185c7b852631c3244304180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:34:23 +0300 Subject: [PATCH] Make background-services a deployment --- .../templates/background-services.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml b/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml index 570a6c2..5d83c0d 100644 --- a/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml +++ b/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml @@ -1,18 +1,21 @@ -apiVersion: batch/v1 -kind: Job +apiVersion: apps/v1 +kind: Deployment metadata: name: {{ .Release.Name }}-{{ .Chart.Name }} spec: - activeDeadlineSeconds: 180 + selector: + matchLabels: + app: {{ .Release.Name }}-{{ .Chart.Name }} template: + metadata: + labels: + app: {{ .Release.Name }}-{{ .Chart.Name }} spec: containers: - - name: {{ .Release.Name }}-{{ .Chart.Name }} - image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} + - image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} + name: {{ .Release.Name }}-{{ .Chart.Name }} env: {{ include "eventhub.global.env" . | indent 8 }} - name: "ConnectionStrings__Default" - value: {{ .Values.global.defaultConnString }} - restartPolicy: Never - backoffLimit: 10 \ No newline at end of file + value: {{ .Values.global.defaultConnString }} \ No newline at end of file