diff --git a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml index 7ad1fc7..7963f62 100644 --- a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml +++ b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml @@ -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 @@ -67,14 +67,14 @@ spec: readinessProbe: httpGet: path: /health - port: 8080 + port: 80 initialDelaySeconds: 5 timeoutSeconds: 5 periodSeconds: 10 livenessProbe: httpGet: path: /health - port: 8080 + port: 80 initialDelaySeconds: 15 timeoutSeconds: 5 periodSeconds: 15 @@ -87,20 +87,32 @@ spec: - name: CADDY_HTTPS_PORT value: "8443" - name: CADDY_HTTP_PORT - value: "8080" + value: "80" - name: CADDY_DATA_FS value: "/tmp/caddy" - name: CADDY_APP_ROOT_PUBLIC value: "/app/public/" ports: - - containerPort: 8080 + - containerPort: 80 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 + diff --git a/resources/hydra-dispatcher/resources/hydra-dispatcher-service.yaml b/resources/hydra-dispatcher/resources/hydra-dispatcher-service.yaml index 4a209a3..1f8a023 100644 --- a/resources/hydra-dispatcher/resources/hydra-dispatcher-service.yaml +++ b/resources/hydra-dispatcher/resources/hydra-dispatcher-service.yaml @@ -7,7 +7,7 @@ metadata: spec: ports: - name: http - port: 8080 + port: 80 selector: app.kubernetes.io/name: hydra-dispatcher status: