Compare commits
9 Commits
7a09045e82
...
v1.0.31-un
Author | SHA1 | Date | |
---|---|---|---|
172d9def39 | |||
e4b67e0812 | |||
a26b8aafe1 | |||
06235bccad | |||
19039c5e1c | |||
9e02d7badb | |||
87a056be2c | |||
fedf44a062 | |||
b0506995e5 |
@ -17,7 +17,7 @@ set -o nounset
|
||||
# -> delete "cascade" on table "flow" cleans access, code, oidc, pkce and refresh tables.
|
||||
|
||||
|
||||
DSN="postgresql://${HYDRA_DATABASE_USER}:${HYDRA_DATABASE_PASSWORD}@${HYDRA_DATABASE_SERVICE_NAME}:5432/hydra?sslmode=disable"
|
||||
DSN="${DSN:-postgresql://${HYDRA_DATABASE_USER}:${HYDRA_DATABASE_PASSWORD}@${HYDRA_DATABASE_SERVICE_NAME}:${HYDRA_DATABASE_SERVICE_PORT:-5432}/hydra?sslmode=disable}"
|
||||
RETENTION_HOURS="${RETENTION_HOURS:-48}"
|
||||
BATCH_SIZE="${BATCH_SIZE:-50}"
|
||||
LIMIT="${LIMIT:-1000}"
|
||||
|
@ -21,7 +21,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: hydra-sql-fpm
|
||||
image: reg.cadoles.com/cadoles/hydra-sql-base:2024.11.6-develop.1113.075be9b
|
||||
image: reg.cadoles.com/cadoles/hydra-sql-base:2025.3.7-develop.1415.7239d84
|
||||
imagePullPolicy: IfNotPresent
|
||||
args: ["/usr/sbin/php-fpm81", "-F", "-e"]
|
||||
readinessProbe:
|
||||
@ -68,7 +68,7 @@ spec:
|
||||
subPath: 03_base.ini
|
||||
|
||||
- name: hydra-sql-caddy
|
||||
image: reg.cadoles.com/cadoles/hydra-sql-base:2024.11.6-develop.1113.075be9b
|
||||
image: reg.cadoles.com/cadoles/hydra-sql-base:2025.3.7-develop.1415.7239d84
|
||||
imagePullPolicy: IfNotPresent
|
||||
args: ["/usr/sbin/caddy", "run", "--adapter", "caddyfile", "--config", "/etc/caddy/Caddyfile"]
|
||||
readinessProbe:
|
||||
|
@ -14,6 +14,7 @@ components:
|
||||
- ../../components/hydra-ldap
|
||||
- ../../components/oidc-test
|
||||
- ../../components/redis
|
||||
- ../../components/hydra-cleaner
|
||||
|
||||
patchesJson6902:
|
||||
- target:
|
||||
@ -51,6 +52,16 @@ patchesJson6902:
|
||||
kind: OAuth2Client
|
||||
name: oidc-test-oauth2-client
|
||||
path: patches/oidc-test-oauth2-client.yaml
|
||||
- target:
|
||||
version: v1
|
||||
kind: ConfigMap
|
||||
name: hydra-cleaner-env
|
||||
path: patches/hydra-cleaner-env.yaml
|
||||
- target:
|
||||
version: v1
|
||||
kind: CronJob
|
||||
name: hydra-cleaner
|
||||
path: patches/hydra-cleaner.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: hydra-dispatcher-apps
|
||||
|
@ -0,0 +1,9 @@
|
||||
- op: replace
|
||||
path: "/data/RETENTION_HOURS"
|
||||
value: "1" # 1 HOUR
|
||||
- op: replace
|
||||
path: "/data/BATCH_SIZE"
|
||||
value: "100"
|
||||
- op: replace
|
||||
path: "/data/LIMIT"
|
||||
value: "1000"
|
3
examples/authenticated-app/patches/hydra-cleaner.yaml
Normal file
3
examples/authenticated-app/patches/hydra-cleaner.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
- op: replace
|
||||
path: "/spec/schedule"
|
||||
value: "* * * * *"
|
@ -31,6 +31,7 @@ configMapGenerator:
|
||||
- URLS_LOGOUT=http://hydra-logout-app/logout
|
||||
- HYDRA_SERVE_ALL_ARGS=--dev
|
||||
- HYDRA_DATABASE_MAX_CONN="10"
|
||||
- SERVE_ADMIN_REQUEST_LOG_DISABLE_FOR_HEALTH="true"
|
||||
- LOG_LEVEL=info
|
||||
|
||||
replacements:
|
||||
|
@ -46,10 +46,31 @@ spec:
|
||||
- wget
|
||||
- --spider
|
||||
- -q
|
||||
- http://127.0.0.1:4444/.well-known/openid-configuration
|
||||
- http://127.0.0.1:4445/health/alive
|
||||
failureThreshold: 6
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 10
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- wget
|
||||
- --spider
|
||||
- -q
|
||||
- http://127.0.0.1:4445/health/ready
|
||||
failureThreshold: 6
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 10
|
||||
startupProbe:
|
||||
exec:
|
||||
command:
|
||||
- wget
|
||||
- --spider
|
||||
- -q
|
||||
- http://127.0.0.1:4445/health/ready
|
||||
failureThreshold: 60
|
||||
successThreshold: 1
|
||||
periodSeconds: 1
|
||||
timeoutSeconds: 1
|
||||
ports:
|
||||
- containerPort: 4444
|
||||
name: hydra-public
|
||||
|
Reference in New Issue
Block a user