From eea4b8de472af07da1c1b57c83c600e5ebaef7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9lie=20Loulergue?= Date: Fri, 13 Dec 2024 10:52:08 +0100 Subject: [PATCH] add volume nginx-purge for permissions --- opensource/templates/nginx/nginx-purge-deployment.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/opensource/templates/nginx/nginx-purge-deployment.yaml b/opensource/templates/nginx/nginx-purge-deployment.yaml index 83c808a..be983c4 100644 --- a/opensource/templates/nginx/nginx-purge-deployment.yaml +++ b/opensource/templates/nginx/nginx-purge-deployment.yaml @@ -22,6 +22,8 @@ spec: volumeMounts: - name: nginx-purge-cache mountPath: /var/cache/nginx + - name: nginx-pid + mountPath: /var/run - name: nginx-config-volume mountPath: /etc/nginx/nginx.conf subPath: nginx.conf @@ -32,10 +34,9 @@ spec: limits: cpu: 800m memory: 512Mi - securityContext: - runAsUser: 0 - runAsGroup: 0 volumes: + - name: nginx-pid + emptyDir: {} - name: nginx-purge-cache emptyDir: {} - name: nginx-config-volume