This commit is contained in:
cmsassot 2024-03-26 11:23:32 +01:00
parent 85ec6f03c8
commit 886f98835a
2 changed files with 25 additions and 13 deletions

View File

@ -48,10 +48,10 @@ spec:
- mountPath: /app/config/hydra - mountPath: /app/config/hydra
name: hydra-dispatcher-apps name: hydra-dispatcher-apps
resources: {} resources: {}
securityContext: # securityContext:
runAsNonRoot: true # runAsNonRoot: true
runAsGroup: 1000 # runAsGroup: 1000
runAsUser: 1000 # runAsUser: 1000
- image: reg.cadoles.com/cmsassot/hydra-dispatcher-test:latest - image: reg.cadoles.com/cmsassot/hydra-dispatcher-test:latest
imagePullPolicy: Always imagePullPolicy: Always
name: hydra-dispatcher-nginx name: hydra-dispatcher-nginx
@ -67,14 +67,14 @@ spec:
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /health path: /health
port: 8080 port: 80
initialDelaySeconds: 5 initialDelaySeconds: 5
timeoutSeconds: 5 timeoutSeconds: 5
periodSeconds: 10 periodSeconds: 10
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /health path: /health
port: 8080 port: 80
initialDelaySeconds: 15 initialDelaySeconds: 15
timeoutSeconds: 5 timeoutSeconds: 5
periodSeconds: 15 periodSeconds: 15
@ -87,20 +87,32 @@ spec:
- name: CADDY_HTTPS_PORT - name: CADDY_HTTPS_PORT
value: "8443" value: "8443"
- name: CADDY_HTTP_PORT - name: CADDY_HTTP_PORT
value: "8080" value: "80"
- name: CADDY_DATA_FS - name: CADDY_DATA_FS
value: "/tmp/caddy" value: "/tmp/caddy"
- name: CADDY_APP_ROOT_PUBLIC - name: CADDY_APP_ROOT_PUBLIC
value: "/app/public/" value: "/app/public/"
ports: ports:
- containerPort: 8080 - containerPort: 80
resources: {} resources: {}
securityContext: volumeMounts:
runAsNonRoot: true - name: caddy-data
runAsGroup: 1000 mountPath: /tmp/caddy
runAsUser: 1000 - name: caddy-var
mountPath: /var/caddy
# securityContext:
# runAsNonRoot: true
# runAsGroup: 1000
# runAsUser: 1000
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: hydra-dispatcher-apps - name: hydra-dispatcher-apps
configMap: configMap:
name: hydra-dispatcher-apps name: hydra-dispatcher-apps
- name: caddy-data
emptyDir:
sizeLimit: 128Mi
- name: caddy-var
emptyDir:
sizeLimit: 256Mi

View File

@ -7,7 +7,7 @@ metadata:
spec: spec:
ports: ports:
- name: http - name: http
port: 8080 port: 80
selector: selector:
app.kubernetes.io/name: hydra-dispatcher app.kubernetes.io/name: hydra-dispatcher
status: status: