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 +