From 80b03fed2d4c1ea0e1ab8bc50d33850911de258d Mon Sep 17 00:00:00 2001 From: domrichardson <100129001+domrichardson@users.noreply.github.com> Date: Thu, 7 May 2026 10:04:45 +0100 Subject: [PATCH] feat: updated images Co-authored-by: Copilot --- templates/configmap.yaml | 30 +++++++++++++++++++++++++++++- templates/deployment.yaml | 18 +++++++++++++++--- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/templates/configmap.yaml b/templates/configmap.yaml index 9e541db..f9fe878 100644 --- a/templates/configmap.yaml +++ b/templates/configmap.yaml @@ -4,4 +4,32 @@ metadata: name: {{ .Release.Name }}-configmap data: myvalue: "Hello World" - drink: {{ .Values.favouriteDrink }} \ No newline at end of file + drink: {{ .Values.favouriteDrink }} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ .Release.Name }}-nginx-container2 +data: + default.conf: | + server { + listen {{ .Values.container2.port }}; + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } + } +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ .Release.Name }}-nginx-container3 +data: + default.conf: | + server { + listen {{ .Values.container3.port }}; + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } + } \ No newline at end of file diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 1562034..380ba32 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -61,8 +61,11 @@ spec: protocol: TCP resources: {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.volumeMounts }} volumeMounts: + - name: nginx-config-container2 + mountPath: /etc/nginx/conf.d/default.conf + subPath: default.conf + {{- with .Values.volumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} - name: {{ .Chart.Name }}-container3 @@ -76,12 +79,21 @@ spec: protocol: TCP resources: {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.volumeMounts }} volumeMounts: + - name: nginx-config-container3 + mountPath: /etc/nginx/conf.d/default.conf + subPath: default.conf + {{- with .Values.volumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} - {{- with .Values.volumes }} volumes: + - name: nginx-config-container2 + configMap: + name: {{ .Release.Name }}-nginx-container2 + - name: nginx-config-container3 + configMap: + name: {{ .Release.Name }}-nginx-container3 + {{- with .Values.volumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.nodeSelector }}