From 8de5568b2840a2fb7f44bed0bbe1b49d361fccce 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.lock | 7 +++++-- charts/data-gateway/Chart.yaml | 6 +++++- charts/data-gateway/values.yaml | 22 ++++++++++++++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/charts/data-gateway/Chart.lock b/charts/data-gateway/Chart.lock index 0698753..330acca 100644 --- a/charts/data-gateway/Chart.lock +++ b/charts/data-gateway/Chart.lock @@ -8,5 +8,8 @@ dependencies: - name: opentelemetry-collector repository: https://open-telemetry.github.io/opentelemetry-helm-charts version: 0.83.0 -digest: sha256:c64dbb83ab863fb6f4c83dd8fc4505508072fda7b83f3ae1d1ac96af4b3b0c5f -generated: "2024-03-14T11:22:20.559143777Z" +- name: router + repository: oci://ghcr.io/apollographql/helm-charts + version: 1.41.1 +digest: sha256:c33267c54daddb2c5ce7934886e0c734a1c2a04eb1c4360e8be0aacc191120c6 +generated: "2024-03-14T15:16:23.516231741Z" diff --git a/charts/data-gateway/Chart.yaml b/charts/data-gateway/Chart.yaml index 55c9c16..70d972b 100644 --- a/charts/data-gateway/Chart.yaml +++ b/charts/data-gateway/Chart.yaml @@ -3,7 +3,7 @@ name: data-gateway description: A GraphQL router deployment forming the Diamond Data Gateway type: application -version: 0.2.0 +version: 0.3.0 dependencies: - name: prometheus @@ -18,3 +18,7 @@ dependencies: repository: https://open-telemetry.github.io/opentelemetry-helm-charts version: 0.83.0 condition: opentelemetry-collector.enabled + - 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 88f10eb..9375717 100644 --- a/charts/data-gateway/values.yaml +++ b/charts/data-gateway/values.yaml @@ -205,3 +205,25 @@ opentelemetry-collector: - batch exporters: - otlp/jaeger +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