From 3494115f45a2d7605765eab30dc4c4252563f052 Mon Sep 17 00:00:00 2001 From: cmsassot Date: Tue, 26 Mar 2024 10:55:58 +0100 Subject: [PATCH] =?UTF-8?q?test=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hydra-dispatcher-deployment.yaml | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml index 7ad1fc7..b38bc16 100644 --- a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml +++ b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml @@ -48,10 +48,10 @@ spec: - mountPath: /app/config/hydra name: hydra-dispatcher-apps resources: {} - securityContext: - runAsNonRoot: true - runAsGroup: 1000 - runAsUser: 1000 + # securityContext: + # runAsNonRoot: true + # runAsGroup: 1000 + # runAsUser: 1000 - image: reg.cadoles.com/cmsassot/hydra-dispatcher-test:latest imagePullPolicy: Always name: hydra-dispatcher-nginx @@ -95,12 +95,24 @@ spec: ports: - containerPort: 8080 resources: {} - securityContext: - runAsNonRoot: true - runAsGroup: 1000 - runAsUser: 1000 + volumeMounts: + - name: caddy-data + mountPath: /tmp/caddy + - name: caddy-var + mountPath: /var/caddy + # securityContext: + # runAsNonRoot: true + # runAsGroup: 1000 + # runAsUser: 1000 restartPolicy: Always volumes: - name: hydra-dispatcher-apps configMap: name: hydra-dispatcher-apps + - name: caddy-data + emptyDir: + sizeLimit: 128Mi + - name: caddy-var + emptyDir: + sizeLimit: 256Mi +