cosmo
by WunderGraph
Helm chartv0.22.2Verified publisher
This is the official Helm Chart for WunderGraph Cosmo - The Full Lifecycle GraphQL API Management Solution.
About this chart
cosmo
For a detailed deployment guide of the chart, including the full documentation, see the DEV.md file.
This is the official Helm Chart for WunderGraph Cosmo - The Full Lifecycle GraphQL API Management Solution.
Homepage: https://github.com/wundergraph/cosmo
Maintainers
| Name | Url | |
|---|---|---|
| Dustin Deus | [email protected] | https://github.com/StarpTech |
Requirements
| Repository | Name | Version |
|---|---|---|
| cdn | ^0 | |
| controlplane | ^0 | |
| graphqlmetrics | ^0 | |
| otelcollector | ^0 | |
| router | ^0 | |
| studio | ^0 | |
| https://charts.bitnami.com/bitnami | clickhouse | 6.2.14 |
| https://charts.bitnami.com/bitnami | minio | 14.6.25 |
| https://charts.bitnami.com/bitnami | postgresql | 12.12.10 |
| https://charts.bitnami.com/bitnami | redis | 19.3.3 |
| https://codecentric.github.io/helm-charts | keycloak(keycloakx) | 7.1.8 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| cdn.commonLabels | object | {} | Add labels to all deployed resources |
| cdn.configuration.s3AccessKeyId | string | "" | s3 access key id, can be used instead of [username]:[password] in the url |
| cdn.configuration.s3Endpoint | string | "" | The endpoint of the S3 bucket. |
| cdn.configuration.s3ForcePathStyle | string | "true" | Forces usage of path style urls for S3. Default is true. |
| cdn.configuration.s3Region | string | "auto" | The region where the S3 bucket is located. |
| cdn.configuration.s3SecretAccessKey | string | "" | s3 secret access key, can be used instead of [username]:[password] in the url |
| cdn.configuration.s3StorageUrl | string | "http://minio:changeme@cosmo-minio:9000/cosmo" | |
| clickhouse.auth.password | string | "changeme" | |
| clickhouse.auth.username | string | "default" | |
| clickhouse.commonAnnotations."kapp.k14s.io/change-group" | string | "cosmo.apps.clickhouse.wundergraph.com/deployment" | |
| clickhouse.image.registry | string | "docker.io" | |
| clickhouse.image.repository | string | "bitnamilegacy/clickhouse" | |
| clickhouse.initdbScripts."db-init.sh" | string | "#!/bin/bash\nset -e\nclickhouse-client --user $CLICKHOUSE_ADMIN_USER --password $CLICKHOUSE_ADMIN_PASSWORD -n <<-EOSQL\n CREATE DATABASE IF NOT EXISTS cosmo;\nEOSQL\n" | |
| clickhouse.persistence.annotations."kapp.k14s.io/owned-for-deletion" | string | "" | |
| clickhouse.persistence.size | string | "2Gi" | |
| clickhouse.replicaCount | int | 1 | |
| clickhouse.resources.limits.cpu | string | "1" | |
| clickhouse.resources.limits.memory | string | "2Gi" | |
| clickhouse.resources.requests.cpu | string | "1" | |
| clickhouse.resources.requests.memory | string | "2Gi" | |
| clickhouse.shards | int | 1 | |
| clickhouse.zookeeper.enabled | bool | false | |
| controlplane.additionalJobLabels | object | {} | Pass additional labels to all jobs |
| controlplane.commonLabels | object | {} | Add labels to all deployed resources |
| controlplane.configuration.allowedOrigins[0] | string | "http://studio.wundergraph.local" | |
| controlplane.configuration.authRedirectUri | string | "http://controlplane.wundergraph.local/v1/auth/callback" | |
| controlplane.configuration.cdnBaseUrl | string | "http://cosmo-cdn:8787" | |
| controlplane.configuration.clickhouseDsn | string | "http://default:changeme@cosmo-clickhouse:8123/?database=cosmo" | |
| controlplane.configuration.clickhouseMigrationDsn | string | "clickhouse://default:changeme@cosmo-clickhouse:9000/cosmo?dial_timeout=15s&max_execution_time=60" | |
| controlplane.configuration.databaseUrl | string | "postgres://postgres:changeme@cosmo-postgresql:5432/controlplane" | |
| controlplane.configuration.debugSQL | bool | false | |
| controlplane.configuration.logLevel | string | "debug" | |
| controlplane.configuration.prometheus.enabled | bool | false | Enables prometheus metrics support. Default is false. |
| controlplane.configuration.prometheus.gcpMonitoring.enabled | bool | false | Enables gcp support . Default is false. |
| controlplane.configuration.prometheus.gcpMonitoring.interval | string | "60s" | Scrape interval. Default is "60s". |
| controlplane.configuration.prometheus.gcpMonitoring.timeout | string | "50s" | Scrape timeout. Default is "50s". |
| controlplane.configuration.prometheus.host | string | "127.0.0.1" | The host to bind to defaults to 127.0.0.1 to avoid opening the metrics endpoint by default. |
| controlplane.configuration.prometheus.path | string | "/metrics" | The HTTP path where metrics are exposed. Default is "/metrics". |
| controlplane.configuration.prometheus.port | int | 8088 | The port where metrics are exposed. Default is port 8088. |
| controlplane.configuration.redisHost | string | "cosmo-redis-master" | |
| controlplane.configuration.redisPort | int | 6379 | |
| controlplane.configuration.s3AccessKeyId | string | "" | s3 access key id, can be used instead of [username]:[password] in the url |
| controlplane.configuration.s3Endpoint | string | "" | The endpoint of the S3 bucket. |
| controlplane.configuration.s3ForcePathStyle | string | "true" | Forces usage of path style urls for S3. Default is true. |
| controlplane.configuration.s3Region | string | "auto" | The region where the S3 bucket is located. |
| controlplane.configuration.s3SecretAccessKey | string | "" | s3 secret access key, can be used instead of [username]:[password] in the url |
| controlplane.configuration.s3StorageUrl | string | "http://minio:changeme@cosmo-minio:9000/cosmo" | |
| controlplane.configuration.smtp | object | {"enabled":false,"host":"smtp.postmarkapp.com","password":"","port":587,"requireTls":true,"secure":true,"username":""} | Use this section to configure the smtp server. |
| controlplane.configuration.smtp.enabled | bool | false | Enables the smtp server. Default is false. |
| controlplane.configuration.smtp.host | string | "smtp.postmarkapp.com" | The host to connect to. Default is "smtp.postmarkapp.com". |
| controlplane.configuration.smtp.password | string | "" | The password to use. Default is "". |
| controlplane.configuration.smtp.port | int | 587 | The port the smtp server listens to. Default is 587. |
| controlplane.configuration.smtp.requireTls | bool | true | Forces the client to use STARTTLS. Default is true. |
| controlplane.configuration.smtp.secure | bool | true | Defines if the connection should use SSL. Default is true. |
| controlplane.configuration.smtp.username | string | "" | The username to use. Default is "". |
| controlplane.jobs | object | {"activateOrganization":{"additionalLabels":{},"enabled":false,"id":"123","slug":"foo"},"clickhouseMigration":{"additionalLabels":{}},"databaseMigration":{"additionalLabels":{}},"deactivateOrganization":{"additionalLabels":{},"enabled":false,"id":"123","reason":"","slug":"foo"},"deleteUser":{"additionalLabels":{},"email":"[email protected]","enabled":false,"id":"123"},"enableSplitConfigLoading":{"additionalLabels":{},"enabled":false,"id":"123"},"seedOrganization":{"additionalLabels":{}}} | Configure jobs to be executed in the control plane |
| controlplane.jobs.activateOrganization | object | {"additionalLabels":{},"enabled":false,"id":"123","slug":"foo"} | Used to activate an organization and remove the scheduled deletion |
| controlplane.jobs.activateOrganization.additionalLabels | object | {} | Adds additional labels to the job |
| controlplane.jobs.activateOrganization.enabled | bool | false | Enables the job to be run |
| controlplane.jobs.activateOrganization.id | string | "123" | The unique identifier of the organization |
| controlplane.jobs.activateOrganization.slug | string | "foo" | The slug of the organization |
| controlplane.jobs.clickhouseMigration.additionalLabels | object | {} | Adds additional labels to the clickhouse migration job (see: .Values.global.otelcollector) |
| controlplane.jobs.databaseMigration.additionalLabels | object | {} | Adds additional labels to the database-migration job |
| controlplane.jobs.deactivateOrganization | object | {"additionalLabels":{},"enabled":false,"id":"123","reason":"","slug":"foo"} | Used to deactivate an organization with a reason and schedule deletion |
| controlplane.jobs.deactivateOrganization.additionalLabels | object | {} | Adds additional labels to the job |
| controlplane.jobs.deactivateOrganization.enabled | bool | false | Enables the job to be run |
| controlplane.jobs.deactivateOrganization.id | string | "123" | The unique identifier of the organization |
| controlplane.jobs.deactivateOrganization.reason | string | "" | The reason for deactivation |
| controlplane.jobs.deactivateOrganization.slug | string | "foo" | The slug of the organization |
| controlplane.jobs.deleteUser | object | {"additionalLabels":{},"email":"[email protected]","enabled":false,"id":"123"} | Used to delete the user |
| controlplane.jobs.deleteUser.additionalLabels | object | {} | Adds additional labels to the job |
| controlplane.jobs.deleteUser.email | string | "[email protected]" | The email of the user |
| controlplane.jobs.deleteUser.enabled | bool | false | Enables the job to be run |
| controlplane.jobs.deleteUser.id | string | "123" | The unique identifier of the user |
| controlplane.jobs.enableSplitConfigLoading.additionalLabels | object | {} | Adds additional labels to the job |
| controlplane.jobs.enableSplitConfigLoading.enabled | bool | false | Enables the job to be run |
| controlplane.jobs.enableSplitConfigLoading.id | string | "123" | The unique identifier of the organization |
| controlplane.jobs.seedOrganization.additionalLabels | object | {} | Adds additional labels to the job (see: .Values.global.seed) |
| global.cdn.enabled | bool | true | |
| global.cdn.ingress.enabled | bool | true | Include this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings. |
| global.cdn.port | int | 8787 | |
| global.cdn.webUrl | string | "http://cdn.wundergraph.local" | |
| global.clickhouse.enabled | bool | true | |
| global.controlplane.admissionJwtSecret | string | "uXDxJLEvrw4aafPfrf3rRotCoBzRfPEW" | |
| global.controlplane.enabled | bool | true | |
| global.controlplane.ingress.enabled | bool | true | Include this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings. |
| global.controlplane.jwtSecret | string | "1YQ4YR18WWNEWCLUIUKN5WVQ31HWDHEM" | |
| global.controlplane.port | int | 3001 | |
| global.controlplane.webUrl | string | "http://controlplane.wundergraph.local" | |
| global.graphqlmetrics.enabled | bool | true | |
| global.graphqlmetrics.ingress.enabled | bool | true | Include this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings. |
| global.graphqlmetrics.port | int | 4005 | |
| global.graphqlmetrics.webUrl | string | "http://graphqlmetrics.wundergraph.local" | |
| global.helmTests.enabled | bool | false | |
| global.keycloak.adminPassword | string | "changeme" | |
| global.keycloak.adminUser | string | "admin" | |
| global.keycloak.apiUrl | string | "http://cosmo-keycloak-http:8080" | |
| global.keycloak.clientId | string | "studio" | |
| global.keycloak.database | string | "keycloak" | |
| global.keycloak.databasePassword | string | "changeme" | |
| global.keycloak.databaseSchema | string | "public" | |
| global.keycloak.databaseUsername | string | "postgres" | |
| global.keycloak.enabled | bool | true | |
| global.keycloak.ingress.enabled | bool | true | Include this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings. |
| global.keycloak.loginRealm | string | "master" | |
| global.keycloak.port | int | 8080 | |
| global.keycloak.realm | string | "cosmo" | |
| global.keycloak.smtpServer.auth | bool | true | Use auth for connecting to the smtpServer. |
| global.keycloak.smtpServer.from | string | "[email protected]" | Set 'from' email to be used. |
| global.keycloak.smtpServer.fromDisplayName | string | "WunderGraph Cosmo" | Set fromDisplayName. |
| global.keycloak.smtpServer.host | string | "smtp.postmarkapp.com" | Set mail host to be used, usually the same one as the one in the controlplane. |
| global.keycloak.smtpServer.password | string | "**********" | Set password to be used for connecting to the smtpServer. |
| global.keycloak.smtpServer.port | int | 587 | The port of the mail server. |
| global.keycloak.smtpServer.replyToDisplayName | string | "WunderGraph Cosmo" | Set replyToDisplayName. |
| global.keycloak.smtpServer.ssl | bool | false | Enable or disable using ssl for the smtpServer connection. |
| global.keycloak.smtpServer.starttls | bool | true | Enable or disable starttls. |
| global.keycloak.smtpServer.username | string | "" | Set username, maps to smtpServer.user in the imported keycloak realm |
| global.keycloak.webUrl | string | "http://keycloak.wundergraph.local" | |
| global.minio.enabled | bool | true | |
| global.otelcollector.enabled | bool | true | |
| global.otelcollector.ingress.enabled | bool | true | Include this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings. |
| global.otelcollector.port | int | 4318 | |
| global.otelcollector.webUrl | string | "http://otelcollector.wundergraph.local" | |
| global.postgresql.enabled | bool | true | |
| global.redis.enabled | bool | true | |
| globa |
Deploy cosmo with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cosmo 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcosmo is pinned at v0.22.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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