From 3f40e370a56fd9d5052cec825119ad44037505ff Mon Sep 17 00:00:00 2001 From: u1 Date: Tue, 6 Jan 2026 00:19:02 +0000 Subject: [PATCH] feat(hasura): add deployment --- kustomize/base/hasura/deployment.yaml | 53 +++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 kustomize/base/hasura/deployment.yaml diff --git a/kustomize/base/hasura/deployment.yaml b/kustomize/base/hasura/deployment.yaml new file mode 100644 index 0000000..4e72f7e --- /dev/null +++ b/kustomize/base/hasura/deployment.yaml @@ -0,0 +1,53 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hasura + annotations: + argocd.argoproj.io/sync-wave: "1" +spec: + replicas: 1 + selector: + matchLabels: + app: hasura + template: + metadata: + labels: + app: hasura + spec: + containers: + - name: hasura + image: hasura/graphql-engine:v2.40.1 + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 8080 + envFrom: + - secretRef: + name: trade-postgres + - secretRef: + name: trade-hasura + env: + - name: HASURA_GRAPHQL_DATABASE_URL + value: postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@postgres:5432/$(POSTGRES_DB) + - name: HASURA_GRAPHQL_JWT_SECRET + value: '{"type":"HS256","key":"$(HASURA_JWT_KEY)"}' + - name: HASURA_GRAPHQL_ENABLE_CONSOLE + value: "false" + - name: HASURA_GRAPHQL_DEV_MODE + value: "false" + - name: HASURA_GRAPHQL_CORS_DOMAIN + value: "http://localhost:5173,http://127.0.0.1:5173" + readinessProbe: + httpGet: + path: /healthz + port: http + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 3 + livenessProbe: + httpGet: + path: /healthz + port: http + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 3