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"