Skip to content

Commit

Permalink
Use mounted supergraph file to provide schema
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Jul 17, 2024
1 parent 9f366d0 commit d6bd601
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions charts/graph/values.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
router:
enabled: true
managedFederation:
existingSecret: router-apikey
graphRef: data-gateway-n63jcf@current
args:
- --hot-reload
- --supergraph /etc/apollo/supergraph.graphql
podAnnotations:
prometheus.io/scrape: "true"
prometheus.io/port: "44180"
Expand Down Expand Up @@ -36,6 +34,17 @@ router:
instrumentation:
spans:
mode: spec_compliant
extraVolumes:
- name: supergraph
configMap:
name: "{{ .Release.Name }}-supergraph-schema"
items:
- key: supergraph.graphql
path: supergraph.graphql
extraVolumeMounts:
- name: supergraph
mountPath: /etc/apollo/
readonly: true
resources:
requests:
cpu: 8
Expand Down

0 comments on commit d6bd601

Please sign in to comment.