Helm releases are currently not part of any release automation. We update them as recent as possible in the repository above. Please reach out to us if you need something else.
Install the router through our official OCI chart. Note that Helm 3.8 or later is required.Create the following file to not bother with cli flags.
values.yaml
Copy
Ask AI
configuration: # -- The router token is used to authenticate against the Cosmo platform (required) graphApiToken: "replace-me"
After that you can install the chart with the release name router. You can use the command also to upgrade a release e.g. after a configuration update.
Managing environment variables can be tedious. We also support providing a custom router configuration. To do so, you only need to create one and specify its name in the chart values. The config must exist in the same namespace as the router.
router-config.yaml
Copy
Ask AI
apiVersion: v1kind: ConfigMapmetadata: name: router-config # Must be same as the router namespace: defaultdata: # key is important config.yaml: | log_level: debug
Now, specify the configuration name in the existingConfigmap of the chart values. Keep in mind that secrets should be passed as Kubernetes Secrets. Use extraEnvVars or extraEnvVarsSecret to pass additional ones.
Instead of creating a separate configmap, you can also inline the configuration values as part of the router chart values. This is handy but should not be used for secrets. Secrets should be passed in the configuration section or through a custom secret map.
values.yaml
Copy
Ask AI
# Use this section to pass the graphApiToken or to configure simple settings.# -- 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/configurationcommonConfiguration: |- version: "1" log_level: "info"
If you follow the default instructions the execution config is polled from the controlplane. Sometimes this is not desired e.g. when you have a strict CI/CD workflow or SLA requirements. The following instructions, shows you how to deploy a Router with a static router execution config.