mirror of
https://github.com/truenas/charts.git
synced 2026-11-23 07:16:13 +00:00
Mount custom nginx configuration for nginx deployment
This commit is contained in:
1 parent
0b615db4e2
commit
25796dfdcd
1 file changed
+10
+10
@@ -8,6 +8,11 @@ spec: {{ include "common.deployment.common_spec" $values | nindent 2 }}
|
|||||||
- name: {{ .Chart.Name }}-nginx
|
- name: {{ .Chart.Name }}-nginx
|
||||||
image: {{ printf "%s:%s" .Values.nginx.image.repository .Values.nginx.image.tag }}
|
image: {{ printf "%s:%s" .Values.nginx.image.repository .Values.nginx.image.tag }}
|
||||||
imagePullPolicy: {{ .Values.nginx.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.nginx.image.pullPolicy }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: configuration
|
||||||
|
mountPath: /etc/nginx/nginx.conf
|
||||||
|
readOnly: true
|
||||||
|
subPath: config
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
@@ -15,3 +20,8 @@ spec: {{ include "common.deployment.common_spec" $values | nindent 2 }}
|
|||||||
- name: https
|
- name: https
|
||||||
containerPort: 443
|
containerPort: 443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
volumes:
|
||||||
|
- name: configuration
|
||||||
|
configMap:
|
||||||
|
defaultMode: 0700
|
||||||
|
name: "nginx-config"
|
||||||
Reference in new issue
Block a user