Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart for Apollo router #3

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions charts/data-gateway/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:05955c12f807a3dea366a4d9422c0a769e9c0ea8e35135c866f5a68335b62950
generated: "2024-03-15T09:58:08.939820307Z"
6 changes: 5 additions & 1 deletion charts/data-gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
15 changes: 15 additions & 0 deletions charts/data-gateway/templates/graph-apikey-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: router-apikey
namespace: data-gateway
spec:
encryptedData:
managedFederationApiKey: AgAFF9OYxROjOaslDdnA+TUs+EWiXbAmAoqj3fZrqqqfFHu64LJIHs8UtF2WDfmh9GpU0kNaPo86xDO8hPPIyIEtlcvkmMIdzgt9AUhN9JsqpLqDXJZau9Oe91Y1R63sOIIZH2c3rFYzUhbmWeM32AYtWuxlLTZvjYI08l3Y5rY6vBcFhgO2mnLuHW0ajKPh/DTz3tEr7my3wQmG9cjrLzqITSWot04rMOjfj9Ky4t6RAxvReZx6u1oBlstHNfjzr2dWTsTyvBQhi1+hx7UlkqDwON1YbPkcXiqsRXpAzTrp7a0HyZbSlxrfsrguygzzCm3algIG1iu8OSc/M0YUEvZA37kc4USMh/LaUOSUgn5RbLtUdRpwMbTAc/hIQJpxW0aGYXKjEgZ0MSYYLWyAfyt/rcWaB0kjDWzJwAYNzsW1OBYA4G525xAUoWXm00CAwXLCdPn9tr1Fdj+1l7jypnbIq0wXcdlUJWcq+ec+ZJIxIQbVP2PY80eVCLuP9dw3llmyxotjlbHhnKipEFfJlifLCZErJMLsn7NBx8rol0dmcl8jczMvS4favxoxhzwXbeAydXtkQDQcygpHGMzYJ7lOWQ6igGLHxNNhYGMtVndC5/xv44to1rrXMp6pZVBbrtoL3TO9i5HZcqehNBNSNDB6103Siw0ZviR1BG6GOBDV7MZ2Lps0MthSEIq8pVGGQ2Z83RgBjZ7zjsovMgRPUc8d3+Kkb01q28GrBwPQvQ4/1IINe2BTgxGEY+jFCihUnwjA9w==
template:
metadata:
creationTimestamp: null
name: router-apikey
namespace: data-gateway

40 changes: 40 additions & 0 deletions charts/data-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,43 @@ opentelemetry-collector:
- batch
exporters:
- otlp/jaeger
router:
enabled: true
managedFederation:
existingSecret: router-apikey
graphRef: data-gateway-n63jcf@current
ingress:
enabled: true
hosts:
- host: data-gateway.diamond.ac.uk
paths:
- path: /
pathType: Prefix
router:
args:
- --hot-reload
- --dev
garryod marked this conversation as resolved.
Show resolved Hide resolved
configuration:
telemetry:
instrumentation:
spans:
mode: spec_compliant
exporters:
metrics:
otlp:
enabled: true
endpoint: '{{ .Release.Name }}-opentelemetry-collector:4317'
protocol: grpc
tracing:
otlp:
enabled: true
endpoint: '{{ .Release.Name }}-opentelemetry-collector:4317'
protocol: grpc

resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 1
memory: 128Mi
Loading