Skip to content

Commit

Permalink
fix: hasura startupProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Oct 8, 2024
1 parent bbc0af1 commit d90e36e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .kontinuous/env/prod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ hasura:
annotations:
oblik.socialgouv.io/enabled: "true"
host: hasura-{{ .Values.global.host }}
startupProbe:
initialDelaySeconds: 300

pg:
cnpg-cluster:
Expand Down
22 changes: 12 additions & 10 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ app:
probesPath: /api/healthz
imagePackage: app
envFrom:
- secretRef:
name: app
- secretRef:
name: app
vars:
ENV: prod
HASURA_URL: http://hasura/v1/graphql
Expand All @@ -25,21 +25,22 @@ hasura:
annotations:
"oblik.socialgouv.io/min-limit-memory": 950Mi
envFrom:
- secretRef:
name: pg-app
- configMapRef:
name: hasura
- secretRef:
name: hasura
- secretRef:
name: pg-app
- configMapRef:
name: hasura
- secretRef:
name: hasura
securityContext:
fsGroup: 1001
runAsUser: 1001
runAsGroup: 1001
startupProbe:
initialDelaySeconds: 120
httpGet:
path: /healthz
port: http
failureThreshold: 120
failureThreshold: 5

jobs:
~chart: jobs
Expand All @@ -50,7 +51,8 @@ jobs:
with:
imagePackage: app
buildArgs:
NEXT_PUBLIC_HASURA_URL: "https://hasura-{{ .Values.global.host }}/v1/graphql"
NEXT_PUBLIC_HASURA_URL:
"https://hasura-{{ .Values.global.host }}/v1/graphql"
secrets:
sentry_auth_token:
secretName: app
Expand Down

0 comments on commit d90e36e

Please sign in to comment.