router

by WunderGraph

Helm chartv0.18.0App 0.243.0Verified publisher

This is the official Helm Chart for the WunderGraph Cosmo Router.

About this chart

router

This is the official Helm Chart for the WunderGraph Cosmo Router.

Values

KeyTypeDefaultDescription
additionalLabelsobject{}Add labels to deployment (metadata.labels)
additionalPodLabelsobject{}Add labels to deployment pod template (spec.template.metadata.labels)
affinityobject{}
autoscaling.behaviorobject{}
autoscaling.enabledboolfalse
autoscaling.extraMetricslist[]
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
commonConfigurationstring"version: \"1\"\nlog_level: \"info\""You can use this to provide the router configuration via yaml. Values here have precedence over the configurations section. For a full list of available configuration options, see https://cosmo-docs.wundergraph.com/router/configuration This value is processed with the helm tpl function allowing referencing of variables and inclusion of templates
commonConfigurationPathstring""Path to a configuration file to embed. If set, this takes precedence over commonConfiguration. The file path is relative to the chart directory and will be processed with the helm tpl function. Example: "configs/router-config.yaml"
commonLabelsobject{}Add labels to all deployed resources
configuration.cdnUrlstring""
configuration.configPathstring""The path to the router config file. This does not refer to the execution config. See: https://cosmo-docs.wundergraph.com/router/configuration#config-file
configuration.controlplaneUrlstring""The URL of the Cosmo Controlplane. Should be internal to the cluster. Default to cloud if not set.
configuration.devModeboolfalseSet to true to enable the development mode. This allows for Advanced Request Tracing (ART) in the GraphQL Playground
configuration.executionConfigstring""The execution config file to statically configure the router. If set, polling of the config is disabled. If your config exceeds 1MB (Kubernetes limit), you have to mount it as a file and set the path in routerConfigPath instead
configuration.graphApiTokenstring"replace-me"The router token is used to authenticate the router against the controlplane (required)
configuration.graphqlMetricsCollectorUrlstring""The URL of the Cosmo GraphQL Metrics Collector. Should be internal to the cluster. Default to cloud if not set.
configuration.httpProxystring""The URL of the HTTP proxy server. Default is an empty string.
configuration.httpsProxystring""The URL of the HTTPS proxy server. Default is an empty string.
configuration.logLevelstring"info"The log level of the router. Default to info if not set.
configuration.mcp.enabledboolfalseEnables MCP server support. Default is false.
configuration.mcp.portint5025The port where the MCP server is exposed. Default is port 5025.
configuration.noProxystring""NO_PROXY is a comma-separated list of hosts or domains for which the proxy should not be used.
configuration.otelCollectorUrlstring""The URL of the Cosmo GraphQL OTEL Collector. Should be internal to the cluster. Default to cloud if not set.
configuration.prometheus.enabledbooltrueEnables prometheus metrics support. Default is true.
configuration.prometheus.pathstring"/metrics"The HTTP path where metrics are exposed. Default is "/metrics".
configuration.prometheus.portint8088The port where metrics are exposed. Default is port 8088.
configuration.routerConfigPathstring""The path to the router execution config file. Before, you have to mount the file as a volume and set the path here. A possible to solution could be to use an init container to download the file from a CDN. If set, polling of the config is disabled.
deploymentStrategyobject{}
existingConfigmapstring""The name of the configmap to use for the router configuration. The key "config.yaml" is required in the configmap. If this is set, the commonConfiguration section is ignored.
existingSecretstring""Existing secret in the same namespace containing the graphApiToken. The secret key has to match with current secret.
extraEnvVarslist[]Allows to set additional environment / runtime variables on the container. Useful for global application non-specific settings.
extraEnvVarsCMstring""Name of existing ConfigMap containing extra env vars
extraEnvVarsSecretstring""Name of existing Secret containing extra env vars
extraVolumeMountslist[]Optionally specify extra list of additional volumeMounts for Router container's
extraVolumeslist[]Optionally specify extra list of additional volumes for Router pods
fullnameOverridestring""String to fully override common.names.fullname template
global.helmTestsboolfalse
image.pullPolicystring"IfNotPresent"
image.registrystring"ghcr.io"
image.repositorystring"wundergraph/cosmo/router"
imagePullSecretslist[]
ingress.hostsstringnil
ingress.tlslist[]
istioGatewayobject{"annotations":{},"enabled":false,"hosts":[],"selector":{}}Requires Istio v1.5 or greater
istioGateway.annotationsobject{}Annotations for the Gateway
istioGateway.enabledboolfalseenable the istioGateway - often used in conjunction with istioVirtualService to expose services via an istio gateway deployment
istioGateway.hostslist[]List of hosts that the gateway can serve
istioGateway.selectorobject{}Selectors for the Gateway deployment
istioVirtualServiceobject{"annotations":{},"enabled":false}Requires Istio v1.5 or greater
istioVirtualService.annotationsobject{}Annotations for the VirtualService
istioVirtualService.enabledboolfalseenable an Istio VirtualService
nameOverridestring""String to partially override common.names.fullname template (will maintain the release name)
nodeSelectorobject{}
podAnnotationsobject{}
podDisruptionBudgetobject{}Sets the pod disruption budget for Deployment pods
podSecurityContextobject{}
priorityClassNamestring""Set to existing PriorityClass name to control pod preemption by the scheduler
probes.livenessobject{"httpGet":{"path":"/health/live","port":"http"},"initialDelaySeconds":10}Configure liveness probe
probes.readinessobject{"httpGet":{"path":"/health/ready","port":"http"},"initialDelaySeconds":5}Configure readiness probe
probes.startupobject{}Configure startup probe
replicaCountint1
resourcesobject{}
securityContextobject{}
service.portint3002
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
serviceAnnotationsobject{}
terminationGracePeriodSecondsint30Sets the termination grace period for Deployment pods
tolerationslist[]

Deploy router with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has router on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartrouter is pinned at v0.18.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply