From 3b6ac19b3728e0ad9df058da2643dfab2db83386 Mon Sep 17 00:00:00 2001 From: leboiko Date: Thu, 19 Dec 2024 00:25:13 -0300 Subject: [PATCH] fixing hasura-engine deployment --- devops/aws/services/graphql/deployment.yaml | 26 +++++++++++++-------- devops/aws/services/graphql/service.yaml | 4 ++++ 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/devops/aws/services/graphql/deployment.yaml b/devops/aws/services/graphql/deployment.yaml index 90f41bd..1ae78b6 100644 --- a/devops/aws/services/graphql/deployment.yaml +++ b/devops/aws/services/graphql/deployment.yaml @@ -23,16 +23,22 @@ spec: serviceAccountName: secrets-access-sa containers: - env: - - name: HASURA_GRAPHQL_DEV_MODE - value: "true" - - name: HASURA_GRAPHQL_ENABLED_LOG_TYPES - value: startup, http-log, webhook-log, websocket-log, query-log - - name: HASURA_GRAPHQL_ENABLE_CONSOLE - value: "true" - - name: HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES - value: "true" - - name: HASURA_GRAPHQL_UNAUTHORIZED_ROLE - value: anonymous + - name: HASURA_GRAPHQL_CORS_DOMAIN + value: "*" + - name: HASURA_GRAPHQL_DEV_MODE + value: "true" + - name: HASURA_GRAPHQL_ENABLED_LOG_TYPES + value: startup, http-log, webhook-log, websocket-log, query-log + - name: HASURA_GRAPHQL_ENABLE_CONSOLE + value: "true" + - name: HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES + value: "true" + - name: HASURA_GRAPHQL_UNAUTHORIZED_ROLE + value: anonymous + - name: HASURA_GRAPHQL_ENABLE_PERSISTED_QUERIES + value: "true" + - name: HASURA_GRAPHQL_PERSISTED_QUERIES_TTL + value: "300" image: hasura/graphql-engine:v2.44.0 livenessProbe: exec: diff --git a/devops/aws/services/graphql/service.yaml b/devops/aws/services/graphql/service.yaml index 3a839cb..2c3daa9 100644 --- a/devops/aws/services/graphql/service.yaml +++ b/devops/aws/services/graphql/service.yaml @@ -15,5 +15,9 @@ spec: targetPort: 8080 protocol: TCP name: https + - port: 8080 + targetPort: 8080 + protocol: TCP + name: http selector: io.kompose.service: graphql-engine \ No newline at end of file