feat : add emptyDir on /tmp for symfony containers based containers

This commit is contained in:
Valentin Carroy 2025-04-22 14:03:07 +02:00
parent 027784e8f5
commit 2a6802aa56
3 changed files with 17 additions and 0 deletions

View File

@ -45,6 +45,9 @@ spec:
envFrom: envFrom:
- configMapRef: - configMapRef:
name: hydra-oidc-env name: hydra-oidc-env
volumeMounts:
- name: oidc-tmp
mountPath: /tmp
resources: {} resources: {}
securityContext: securityContext:
runAsNonRoot: true runAsNonRoot: true
@ -100,3 +103,7 @@ spec:
runAsGroup: 1000 runAsGroup: 1000
runAsUser: 1000 runAsUser: 1000
restartPolicy: Always restartPolicy: Always
volumes:
- name: oidc-tmp
emptyDir:
medium: Memory

View File

@ -63,6 +63,8 @@ spec:
- name: hydra-sql-php-ini - name: hydra-sql-php-ini
mountPath: /etc/php81/conf.d/03_base.ini mountPath: /etc/php81/conf.d/03_base.ini
subPath: 03_base.ini subPath: 03_base.ini
- name: sql-tmp
mountPath: /tmp
- name: hydra-sql-caddy - name: hydra-sql-caddy
image: reg.cadoles.com/cadoles/hydra-sql-base:2025.4.17-symfonycontainerupdate.1254.0de370a image: reg.cadoles.com/cadoles/hydra-sql-base:2025.4.17-symfonycontainerupdate.1254.0de370a
@ -108,5 +110,8 @@ spec:
- name: hydra-sql-php-ini - name: hydra-sql-php-ini
configMap: configMap:
name: hydra-sql-php-ini name: hydra-sql-php-ini
- name: sql-tmp
emptyDir:
medium: Memory
restartPolicy: Always restartPolicy: Always

View File

@ -53,6 +53,8 @@ spec:
- name: hydra-dispatcher-php-ini - name: hydra-dispatcher-php-ini
mountPath: /etc/php81/conf.d/03_base.ini mountPath: /etc/php81/conf.d/03_base.ini
subPath: 03_base.ini subPath: 03_base.ini
- name: dispatcher-tmp
mountPath: /tmp
resources: {} resources: {}
securityContext: securityContext:
runAsNonRoot: true runAsNonRoot: true
@ -111,3 +113,6 @@ spec:
- name: hydra-dispatcher-php-ini - name: hydra-dispatcher-php-ini
configMap: configMap:
name: hydra-dispatcher-php-ini name: hydra-dispatcher-php-ini
- name: dispatcher-tmp
emptyDir:
medium: Memory