feat(frankenphp): configure frankenphp and remove phpfpm

This commit is contained in:
2025-10-13 14:44:46 +02:00
parent a8f2da31c6
commit 427c1b2c9c
3 changed files with 16 additions and 160 deletions

View File

@@ -20,56 +20,9 @@ spec:
app.kubernetes.io/name: hydra-sql
spec:
containers:
- name: hydra-sql-fpm
image: reg.cadoles.com/cadoles/hydra-sql-base:2025.7.30-develop.1146.5f2654c
- name: hydra-sql
image: reg.cadoles.com/gdupont/hydra-sql-base:latest
imagePullPolicy: IfNotPresent
args: ["/usr/sbin/php-fpm84", "-F", "-e"]
readinessProbe:
exec:
command:
- sh
- -c
- test -f /etc/php84/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/php84/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.7.30-develop.1146.5f2654c
imagePullPolicy: IfNotPresent
args: ["/usr/sbin/caddy", "run", "--adapter", "caddyfile", "--config", "/etc/caddy/Caddyfile"]
readinessProbe:
httpGet:
path: /health
@@ -88,8 +41,6 @@ spec:
- configMapRef:
name: hydra-sql-env
env:
- name: CADDY_APP_UPSTREAM_BACKEND_SERVER
value: 127.0.0.1:9000
- name: CADDY_HTTPS_PORT
value: "8443"
- name: CADDY_HTTP_PORT
@@ -102,6 +53,8 @@ spec:
value: health|metrics
- name: CADDY_LOG_SKIP
value: "true"
- name: CADDY_GLOBAL_OPTIONS
value: "local_certs off"
resources: {}
securityContext:
runAsNonRoot: true