add sidecar

master
Marius Ensrud 4 years ago
parent 0ad6242e25
commit 0d5d0edcaa

@ -28,14 +28,15 @@ spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}-nginx
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
command: nginx
ports: ports:
- name: http - name: http
containerPort: 20000 containerPort: 80
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
@ -45,6 +46,23 @@ spec:
httpGet: httpGet:
path: / path: /
port: http 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 }} {{- with .Values.deployment.env }}
env: env:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}

@ -6,7 +6,7 @@ replicaCount: 1
image: image:
repository: docker.bassengvegen.com/sogo repository: docker.bassengvegen.com/sogo
pullPolicy: IfNotPresent pullPolicy: always
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "latest" tag: "latest"

Loading…
Cancel
Save