From 61cc316e1c4d9ba51a88c131b50fc22967ccb0bd Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Thu, 2 Nov 2023 08:50:58 +0100 Subject: [PATCH] add hydra-sql deployment --- .../resources/hydra-sql-deployment.yaml | 35 +++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/components/hydra-sql/resources/hydra-sql-deployment.yaml b/components/hydra-sql/resources/hydra-sql-deployment.yaml index fa270a7..ee84ac4 100644 --- a/components/hydra-sql/resources/hydra-sql-deployment.yaml +++ b/components/hydra-sql/resources/hydra-sql-deployment.yaml @@ -18,10 +18,23 @@ spec: spec: containers: - 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:latest + image: reg.cadoles.com/cadoles/hydra-sql-base:0.0.1 imagePullPolicy: Always 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: {} envFrom: - configMapRef: @@ -39,10 +52,25 @@ spec: - name: sql-login-config mountPath: "/app/config/sql_login_configuration/sql_login.yaml" subPath: "sql_login.yaml" + - 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 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: - configMapRef: name: hydra-sql-env @@ -57,6 +85,7 @@ spec: value: "warn" - name: NGINX_APP_PHP_NON_FILE_PATTERN value: "^/index\\.php(/|$)" + resources: {} ports: - containerPort: 8080 volumeMounts: