From fd5cbaf55fbceef290184b736db6ff9ca5290789 Mon Sep 17 00:00:00 2001 From: cmsassot Date: Tue, 26 Mar 2024 08:51:15 +0100 Subject: [PATCH] test --- .../hydra-oidc/resources/hydra-oidc-deployment.yaml | 12 ++++++++++++ .../resources/hydra-dispatcher-deployment.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/components/hydra-oidc/resources/hydra-oidc-deployment.yaml b/components/hydra-oidc/resources/hydra-oidc-deployment.yaml index e4d1e7e..fb22458 100644 --- a/components/hydra-oidc/resources/hydra-oidc-deployment.yaml +++ b/components/hydra-oidc/resources/hydra-oidc-deployment.yaml @@ -94,8 +94,20 @@ spec: - name: CADDY_APP_ROOT_PUBLIC value: "/app/public/" resources: {} + volumeMounts: + - name: caddy-data + mountPath: /tmp/caddy + - name: caddy-var + mountPath: /var/caddy securityContext: runAsNonRoot: true runAsGroup: 1000 runAsUser: 1000 restartPolicy: Always + volumes: + - name: caddy-data + emptyDir: + sizeLimit: 256Mi + - name: caddy-var + emptyDir: + sizeLimit: 256Mi diff --git a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml index 7ad1fc7..bd4806f 100644 --- a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml +++ b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml @@ -95,6 +95,11 @@ spec: ports: - containerPort: 8080 resources: {} + volumeMounts: + - name: caddy-data + mountPath: /tmp/caddy + - name: caddy-var + mountPath: /var/caddy securityContext: runAsNonRoot: true runAsGroup: 1000 @@ -104,3 +109,10 @@ spec: - name: hydra-dispatcher-apps configMap: name: hydra-dispatcher-apps + - name: caddy-data + emptyDir: + sizeLimit: 128Mi + - name: caddy-var + emptyDir: + sizeLimit: 256Mi +