Compare commits
5 Commits
frankenphp
...
38ac3065e9
Author | SHA1 | Date | |
---|---|---|---|
38ac3065e9 | |||
2a6802aa56 | |||
027784e8f5 | |||
4c4abd6deb | |||
15c784fc33 |
@@ -15,6 +15,7 @@ configMapGenerator:
|
|||||||
literals:
|
literals:
|
||||||
- APP_ENV=prod
|
- APP_ENV=prod
|
||||||
- APP_DEBUG=false
|
- APP_DEBUG=false
|
||||||
|
- PHP_FPM_MEMORY_LIMIT=256m
|
||||||
- NGINX_APP_SERVER_LISTEN=80
|
- NGINX_APP_SERVER_LISTEN=80
|
||||||
- HYDRA_ADMIN_BASE_URL=http://hydra-dispatcher
|
- HYDRA_ADMIN_BASE_URL=http://hydra-dispatcher
|
||||||
- OIC_AUTHORIZE_ENDPOINT=https://oidc-idp/api/v1/authorize
|
- OIC_AUTHORIZE_ENDPOINT=https://oidc-idp/api/v1/authorize
|
||||||
|
@@ -17,9 +17,55 @@ spec:
|
|||||||
app.kubernetes.io/name: hydra-oidc
|
app.kubernetes.io/name: hydra-oidc
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: hydra-oidc
|
- name: hydra-oidc-php-fpm
|
||||||
image: reg.cadoles.com/gdupont/hydra-oidc-base:frankenphp20
|
image: reg.cadoles.com/cadoles/hydra-oidc-base:2025.5.2-symfonycontainerupdate.1649.313cb84
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
args: ["/usr/sbin/php-fpm81", "-F", "-e"]
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- test -f /etc/php81/php-fpm.d/www.conf
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- php
|
||||||
|
- bin/console
|
||||||
|
- -V
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 30
|
||||||
|
env:
|
||||||
|
- name: PHP_FPM_LISTEN
|
||||||
|
value: 127.0.0.1:9000
|
||||||
|
- name: PHP_MEMORY_LIMIT
|
||||||
|
value: 128m
|
||||||
|
- name: PHP_FPM_MEMORY_LIMIT
|
||||||
|
value: 128m
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: hydra-oidc-env
|
||||||
|
volumeMounts:
|
||||||
|
- name: oidc-tmp
|
||||||
|
mountPath: /tmp
|
||||||
|
resources: {}
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsGroup: 1000
|
||||||
|
runAsUser: 1000
|
||||||
|
|
||||||
|
- name: hydra-oidc-caddy
|
||||||
|
image: reg.cadoles.com/cadoles/hydra-oidc-base:2025.5.2-symfonycontainerupdate.1649.313cb84
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
args:
|
||||||
|
[
|
||||||
|
"/usr/sbin/caddy",
|
||||||
|
"run",
|
||||||
|
"--adapter",
|
||||||
|
"caddyfile",
|
||||||
|
"--config",
|
||||||
|
"/etc/caddy/Caddyfile",
|
||||||
|
]
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthy
|
path: /healthy
|
||||||
@@ -41,6 +87,8 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: hydra-oidc-env
|
name: hydra-oidc-env
|
||||||
env:
|
env:
|
||||||
|
- name: CADDY_APP_UPSTREAM_BACKEND_SERVER
|
||||||
|
value: 127.0.0.1:9000
|
||||||
- name: CADDY_HTTPS_PORT
|
- name: CADDY_HTTPS_PORT
|
||||||
value: "8443"
|
value: "8443"
|
||||||
- name: CADDY_HTTP_PORT
|
- name: CADDY_HTTP_PORT
|
||||||
@@ -49,10 +97,6 @@ spec:
|
|||||||
value: "/tmp/caddy"
|
value: "/tmp/caddy"
|
||||||
- name: CADDY_APP_ROOT_PUBLIC
|
- name: CADDY_APP_ROOT_PUBLIC
|
||||||
value: "/app/public/"
|
value: "/app/public/"
|
||||||
- name: CADDY_LOG_FILTER
|
|
||||||
value: healthy|metrics
|
|
||||||
- name: CADDY_LOG_SKIP
|
|
||||||
value: "true"
|
|
||||||
resources: {}
|
resources: {}
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
@@ -20,9 +20,56 @@ spec:
|
|||||||
app.kubernetes.io/name: hydra-sql
|
app.kubernetes.io/name: hydra-sql
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: hydra-sql
|
- name: hydra-sql-fpm
|
||||||
image: reg.cadoles.com/gdupont/hydra-sql-base:frankenphp20
|
image: reg.cadoles.com/cadoles/hydra-sql-base:2025.5.2-symfonycontainerupdate.1627.222206a
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
args: ["/usr/sbin/php-fpm81", "-F", "-e"]
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- test -f /etc/php81/php-fpm.d/www.conf
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- php
|
||||||
|
- bin/console
|
||||||
|
- -V
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 30
|
||||||
|
resources: {}
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsGroup: 1000
|
||||||
|
runAsUser: 1000
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: hydra-sql-env
|
||||||
|
env:
|
||||||
|
- name: PHP_FPM_LISTEN
|
||||||
|
value: 127.0.0.1:9000
|
||||||
|
- name: PHP_MEMORY_LIMIT
|
||||||
|
value: 128m
|
||||||
|
- name: PHP_FPM_MEMORY_LIMIT
|
||||||
|
value: 128m
|
||||||
|
- name: PHP_FPM_LOG_LEVEL
|
||||||
|
value: warning
|
||||||
|
- name: OPCACHE_VALIDATE_TIMESTAMP
|
||||||
|
value: "0"
|
||||||
|
- name: OPCACHE_REVALIDATE_FREQ
|
||||||
|
value: "0"
|
||||||
|
volumeMounts:
|
||||||
|
- name: hydra-sql-php-ini
|
||||||
|
mountPath: /etc/php81/conf.d/03_base.ini
|
||||||
|
subPath: 03_base.ini
|
||||||
|
- name: sql-tmp
|
||||||
|
mountPath: /tmp
|
||||||
|
|
||||||
|
- name: hydra-sql-caddy
|
||||||
|
image: reg.cadoles.com/cadoles/hydra-sql-base:2025.5.2-symfonycontainerupdate.1627.222206a
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
args: ["/usr/sbin/caddy", "run", "--adapter", "caddyfile", "--config", "/etc/caddy/Caddyfile"]
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
@@ -41,6 +88,8 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: hydra-sql-env
|
name: hydra-sql-env
|
||||||
env:
|
env:
|
||||||
|
- name: CADDY_APP_UPSTREAM_BACKEND_SERVER
|
||||||
|
value: 127.0.0.1:9000
|
||||||
- name: CADDY_HTTPS_PORT
|
- name: CADDY_HTTPS_PORT
|
||||||
value: "8443"
|
value: "8443"
|
||||||
- name: CADDY_HTTP_PORT
|
- name: CADDY_HTTP_PORT
|
||||||
@@ -49,10 +98,6 @@ spec:
|
|||||||
value: "/tmp/caddy"
|
value: "/tmp/caddy"
|
||||||
- name: CADDY_APP_ROOT_PUBLIC
|
- name: CADDY_APP_ROOT_PUBLIC
|
||||||
value: "/app/public/"
|
value: "/app/public/"
|
||||||
- name: CADDY_LOG_FILTER
|
|
||||||
value: health|metrics
|
|
||||||
- name: CADDY_LOG_SKIP
|
|
||||||
value: "true"
|
|
||||||
resources: {}
|
resources: {}
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
@@ -14,6 +14,7 @@ configMapGenerator:
|
|||||||
literals:
|
literals:
|
||||||
- APP_ENV=prod
|
- APP_ENV=prod
|
||||||
- APP_DEBUG=false
|
- APP_DEBUG=false
|
||||||
|
- PHP_FPM_MEMORY_LIMIT=256m
|
||||||
- NGINX_APP_SERVER_LISTEN=80
|
- NGINX_APP_SERVER_LISTEN=80
|
||||||
- HYDRA_BASE_URL=http://hydra:4444
|
- HYDRA_BASE_URL=http://hydra:4444
|
||||||
- HYDRA_ADMIN_BASE_URL=http://hydra:4445
|
- HYDRA_ADMIN_BASE_URL=http://hydra:4445
|
||||||
|
@@ -18,9 +18,60 @@ spec:
|
|||||||
app.kubernetes.io/name: hydra-dispatcher
|
app.kubernetes.io/name: hydra-dispatcher
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: hydra-dispatcher
|
- name: hydra-dispatcher-php-fpm
|
||||||
image: reg.cadoles.com/gdupont/hydra-dispatcher-base:frankenphp20
|
image: reg.cadoles.com/cadoles/hydra-dispatcher-base:2025.5.2-symfonycontainerupdate.1656.b9fc5d8
|
||||||
|
args: ["/usr/sbin/php-fpm81", "-F", "-e"]
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- test -f /etc/php81/php-fpm.d/www.conf
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- php
|
||||||
|
- bin/console
|
||||||
|
- -V
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 30
|
||||||
|
env:
|
||||||
|
- name: PHP_FPM_LISTEN
|
||||||
|
value: 127.0.0.1:9000
|
||||||
|
- name: PHP_MEMORY_LIMIT
|
||||||
|
value: 128m
|
||||||
|
- name: PHP_FPM_MEMORY_LIMIT
|
||||||
|
value: 128m
|
||||||
|
- name: OPCACHE_VALIDATE_TIMESTAMP
|
||||||
|
value: "0"
|
||||||
|
- name: OPCACHE_REVALIDATE_FREQ
|
||||||
|
value: "0"
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: hydra-dispatcher-env
|
||||||
|
volumeMounts:
|
||||||
|
- name: hydra-dispatcher-php-ini
|
||||||
|
mountPath: /etc/php81/conf.d/03_base.ini
|
||||||
|
subPath: 03_base.ini
|
||||||
|
- name: dispatcher-tmp
|
||||||
|
mountPath: /tmp
|
||||||
|
resources: {}
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsGroup: 1000
|
||||||
|
runAsUser: 1000
|
||||||
|
- name: hydra-dispatcher-caddy
|
||||||
|
image: reg.cadoles.com/cadoles/hydra-dispatcher-base:2025.5.2-symfonycontainerupdate.1656.b9fc5d8
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
args:
|
||||||
|
[
|
||||||
|
"/usr/sbin/caddy",
|
||||||
|
"run",
|
||||||
|
"--adapter",
|
||||||
|
"caddyfile",
|
||||||
|
"--config",
|
||||||
|
"/etc/caddy/Caddyfile",
|
||||||
|
]
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
@@ -39,6 +90,8 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: hydra-dispatcher-env
|
name: hydra-dispatcher-env
|
||||||
env:
|
env:
|
||||||
|
- name: CADDY_APP_UPSTREAM_BACKEND_SERVER
|
||||||
|
value: 127.0.0.1:9000
|
||||||
- name: CADDY_HTTPS_PORT
|
- name: CADDY_HTTPS_PORT
|
||||||
value: "8443"
|
value: "8443"
|
||||||
- name: CADDY_HTTP_PORT
|
- name: CADDY_HTTP_PORT
|
||||||
@@ -47,18 +100,14 @@ spec:
|
|||||||
value: "/tmp/caddy"
|
value: "/tmp/caddy"
|
||||||
- name: CADDY_APP_ROOT_PUBLIC
|
- name: CADDY_APP_ROOT_PUBLIC
|
||||||
value: "/app/public/"
|
value: "/app/public/"
|
||||||
- name: CADDY_LOG_FILTER
|
|
||||||
value: health|metrics
|
|
||||||
- name: CADDY_LOG_SKIP
|
|
||||||
value: "true"
|
|
||||||
securityContext:
|
|
||||||
runAsNonRoot: true
|
|
||||||
runAsGroup: 1000
|
|
||||||
runAsUser: 1000
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: http
|
name: http
|
||||||
resources: {}
|
resources: {}
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsGroup: 1000
|
||||||
|
runAsUser: 1000
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: hydra-dispatcher-php-ini
|
- name: hydra-dispatcher-php-ini
|
||||||
|
Reference in New Issue
Block a user