Skip to content

Commit

Permalink
[BUGFIX] Update nginx deployment to mount nginx.conf as file (#7150)
Browse files Browse the repository at this point in the history
Signed-off-by: Hannes Blut (external expert on behalf of InfraGO) <[email protected]>
  • Loading branch information
blut authored Jan 17, 2024
1 parent a56442d commit f8708c0
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ spec:
{{ toYaml .extraVolumeMounts | nindent 12 }}
{{- end }}
- name: nginx-config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
{{- if .nginx.basicAuth.enabled }}
- name: auth
mountPath: /etc/nginx/secrets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ spec:
{{- toYaml .Values.nginx.containerSecurityContext | nindent 12 }}
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
{{- if .Values.nginx.basicAuth.enabled }}
- name: auth
mountPath: /etc/nginx/secrets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ spec:
args:
volumeMounts:
- name: nginx-config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ spec:
readOnlyRootFilesystem: true
volumeMounts:
- name: config
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: tmp
mountPath: /tmp
- name: docker-entrypoint-d-override
Expand Down

0 comments on commit f8708c0

Please sign in to comment.