diff --git a/charts/sogo/templates/deployment.yaml b/charts/sogo/templates/deployment.yaml index a8aa1a4..4d18235 100644 --- a/charts/sogo/templates/deployment.yaml +++ b/charts/sogo/templates/deployment.yaml @@ -28,25 +28,6 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - - 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: 80 - protocol: TCP - livenessProbe: - httpGet: - path: /health - port: http - readinessProbe: - httpGet: - path: /health - port: http - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} @@ -77,6 +58,30 @@ spec: name: {{ include "sogo.fullname" . }}-user resources: {{- toYaml .Values.resources | nindent 12 }} + - 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: 80 + protocol: TCP + livenessProbe: + httpGet: + path: /health + port: http + readinessProbe: + httpGet: + path: /health + port: http + - name: {{ .Chart.Name }}-memcached + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: memcached + imagePullPolicy: {{ .Values.image.pullPolicy }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}