diff --git a/templates/deployment.yaml b/templates/deployment.yaml index bbe7d42..4d7a92b 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -31,11 +31,11 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - - name: {{ .Chart.Name }} + - name: {{ .Chart.Name }}-container1 securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} + image: "{{ .Values.container1.image.repository }}:{{ .Values.container1.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.container1.image.pullPolicy }} ports: - name: http containerPort: {{ .Values.service.port }} @@ -50,6 +50,28 @@ spec: volumeMounts: {{- toYaml . | nindent 12 }} {{- end }} + - name: {{ .Chart.Name }}-container2 + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.container2.image.repository }}:{{ .Values.container2.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.container2.image.pullPolicy }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} + - name: {{ .Chart.Name }}-container3 + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.container3.image.repository }}:{{ .Values.container3.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.container3.image.pullPolicy }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.volumes }} volumes: {{- toYaml . | nindent 8 }} diff --git a/values.yaml b/values.yaml index 46e02e6..0367789 100644 --- a/values.yaml +++ b/values.yaml @@ -4,11 +4,23 @@ replicaCount: 1 -image: - repository: nginx - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "1.30" +container1: + image: + repository: nginx-bookworm + pullPolicy: IfNotPresent + tag: "1.28" + +container2: + image: + repository: nginx-alpine + pullPolicy: IfNotPresent + tag: "1.27" + +container3: + image: + repository: nginx + pullPolicy: IfNotPresent + tag: "1.26" imagePullSecrets: [] nameOverride: ""