From 43bbc504e2244e8375e79c8ef3a115e2e81e5002 Mon Sep 17 00:00:00 2001 From: iamvigneshwars Date: Thu, 14 Mar 2024 15:03:41 +0000 Subject: [PATCH] Apollo router - Initial setup --- charts/data-gateway/Chart.yaml | 6 +++++- charts/data-gateway/values.yaml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/charts/data-gateway/Chart.yaml b/charts/data-gateway/Chart.yaml index 9ca9139..005504f 100644 --- a/charts/data-gateway/Chart.yaml +++ b/charts/data-gateway/Chart.yaml @@ -4,4 +4,8 @@ description: A GraphQL router deployment forming the Diamond Data Gateway type: application version: 0.1.0 - +dependencies: + - name: router + repository: oci://ghcr.io/apollographql/helm-charts + version: 1.41.1 + condition: apollo-router.enabled diff --git a/charts/data-gateway/values.yaml b/charts/data-gateway/values.yaml index e69de29..b31f378 100644 --- a/charts/data-gateway/values.yaml +++ b/charts/data-gateway/values.yaml @@ -0,0 +1,22 @@ +router: + enabled: true + managedFederation: + graphRef: data-gateway@current + ingress: + enabled: true + hosts: + - host: data-gateway.diamond.ac.uk + paths: + - path: / + pathType: Prefix + router: + args: + - --hot-reload + - --dev + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 1 + memory: 128Mi