add hydra-sql deployment

This commit is contained in:
Matthieu Lamalle 2023-11-02 08:50:58 +01:00 committed by William Petit
parent 0410748e58
commit d2057af5ca
1 changed files with 32 additions and 3 deletions

View File

@ -18,10 +18,23 @@ spec:
spec: spec:
containers: containers:
- name: hydra-sql-fpm - name: hydra-sql-fpm
image: reg.cadoles.com/rmasson/hydra-sql-kube:0.0.3-dev-issue-14-20230615 image: reg.cadoles.com/cadoles/hydra-sql-base:0.0.1
# - image: reg.cadoles.com/cadoles/hydra-sql:latest
imagePullPolicy: Always imagePullPolicy: Always
args: ["/usr/sbin/php-fpm81", "-F", "-e"] 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: {} resources: {}
envFrom: envFrom:
- configMapRef: - configMapRef:
@ -39,10 +52,25 @@ spec:
- name: sql-login-config - name: sql-login-config
mountPath: "/app/config/sql_login_configuration/sql_login.yaml" mountPath: "/app/config/sql_login_configuration/sql_login.yaml"
subPath: "sql_login.yaml" subPath: "sql_login.yaml"
- name: hydra-sql-nginx - name: hydra-sql-nginx
image: reg.cadoles.com/rmasson/hydra-sql-kube:0.0.3-dev-issue-14-20230615 image: reg.cadoles.com/cadoles/hydra-sql-base:0.0.1
imagePullPolicy: Always imagePullPolicy: Always
args: ["/usr/sbin/nginx"] args: ["/usr/sbin/nginx"]
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 15
timeoutSeconds: 5
periodSeconds: 15
envFrom: envFrom:
- configMapRef: - configMapRef:
name: hydra-sql-env name: hydra-sql-env
@ -57,6 +85,7 @@ spec:
value: "warn" value: "warn"
- name: NGINX_APP_PHP_NON_FILE_PATTERN - name: NGINX_APP_PHP_NON_FILE_PATTERN
value: "^/index\\.php(/|$)" value: "^/index\\.php(/|$)"
resources: {}
ports: ports:
- containerPort: 8080 - containerPort: 8080
volumeMounts: volumeMounts: