From 0d5d0edcaa248b3daec0a2d8371c465392c57f25 Mon Sep 17 00:00:00 2001 From: Marius Ensrud Date: Wed, 3 Nov 2021 20:03:47 +0100 Subject: [PATCH] add sidecar --- charts/sogo/templates/deployment.yaml | 22 ++++++++++++++++++++-- charts/sogo/values.yaml | 2 +- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/charts/sogo/templates/deployment.yaml b/charts/sogo/templates/deployment.yaml index dac88f8..d1b05a5 100644 --- a/charts/sogo/templates/deployment.yaml +++ b/charts/sogo/templates/deployment.yaml @@ -28,14 +28,15 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - - name: {{ .Chart.Name }} + - name: {{ .Chart.Name }}-nginx securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + command: nginx ports: - name: http - containerPort: 20000 + containerPort: 80 protocol: TCP livenessProbe: httpGet: @@ -45,6 +46,23 @@ spec: httpGet: path: / port: http + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: sogo + containerPort: 20000 + protocol: TCP + livenessProbe: + httpGet: + path: / + port: sogo + readinessProbe: + httpGet: + path: / + port: sogo {{- with .Values.deployment.env }} env: {{- toYaml . | nindent 12 }} diff --git a/charts/sogo/values.yaml b/charts/sogo/values.yaml index 31671e5..2016820 100644 --- a/charts/sogo/values.yaml +++ b/charts/sogo/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: repository: docker.bassengvegen.com/sogo - pullPolicy: IfNotPresent + pullPolicy: always # Overrides the image tag whose default is the chart appVersion. tag: "latest"