This commit is contained in:
cmsassot 2024-03-26 10:50:58 +01:00
parent 85ec6f03c8
commit aaccecf5ba
3 changed files with 36 additions and 24 deletions

View File

@ -46,10 +46,10 @@ spec:
- configMapRef:
name: hydra-oidc-env
resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
# securityContext:
# runAsNonRoot: true
# runAsGroup: 1000
# runAsUser: 1000
- image: reg.cadoles.com/cmsassot/hydra-oidc-test:latest
imagePullPolicy: Always
@ -94,8 +94,8 @@ spec:
- name: CADDY_APP_ROOT_PUBLIC
value: "/app/public/"
resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
# securityContext:
# runAsNonRoot: true
# runAsGroup: 1000
# runAsUser: 1000
restartPolicy: Always

View File

@ -36,10 +36,10 @@ spec:
initialDelaySeconds: 10
periodSeconds: 30
resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
# securityContext:
# runAsNonRoot: true
# runAsGroup: 1000
# runAsUser: 1000
envFrom:
- configMapRef:
name: hydra-sql-env
@ -98,10 +98,10 @@ spec:
- name: CADDY_APP_ROOT_PUBLIC
value: "/app/public/"
resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
# securityContext:
# runAsNonRoot: true
# runAsGroup: 1000
# runAsUser: 1000
ports:
- containerPort: 8080
volumeMounts:

View File

@ -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