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

NameEmailUrl
Dustin Deus[email protected]https://github.com/StarpTech

Requirements

RepositoryNameVersion
cdn^0
controlplane^0
graphqlmetrics^0
otelcollector^0
router^0
studio^0
https://charts.bitnami.com/bitnamiclickhouse6.2.14
https://charts.bitnami.com/bitnamiminio14.6.25
https://charts.bitnami.com/bitnamipostgresql12.12.10
https://charts.bitnami.com/bitnamiredis19.3.3
https://codecentric.github.io/helm-chartskeycloak(keycloakx)7.1.8

Values

KeyTypeDefaultDescription
cdn.commonLabelsobject{}Add labels to all deployed resources
cdn.configuration.s3AccessKeyIdstring""s3 access key id, can be used instead of [username]:[password] in the url
cdn.configuration.s3Endpointstring""The endpoint of the S3 bucket.
cdn.configuration.s3ForcePathStylestring"true"Forces usage of path style urls for S3. Default is true.
cdn.configuration.s3Regionstring"auto"The region where the S3 bucket is located.
cdn.configuration.s3SecretAccessKeystring""s3 secret access key, can be used instead of [username]:[password] in the url
cdn.configuration.s3StorageUrlstring"http://minio:changeme@cosmo-minio:9000/cosmo"
clickhouse.auth.passwordstring"changeme"
clickhouse.auth.usernamestring"default"
clickhouse.commonAnnotations."kapp.k14s.io/change-group"string"cosmo.apps.clickhouse.wundergraph.com/deployment"
clickhouse.image.registrystring"docker.io"
clickhouse.image.repositorystring"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.sizestring"2Gi"
clickhouse.replicaCountint1
clickhouse.resources.limits.cpustring"1"
clickhouse.resources.limits.memorystring"2Gi"
clickhouse.resources.requests.cpustring"1"
clickhouse.resources.requests.memorystring"2Gi"
clickhouse.shardsint1
clickhouse.zookeeper.enabledboolfalse
controlplane.additionalJobLabelsobject{}Pass additional labels to all jobs
controlplane.commonLabelsobject{}Add labels to all deployed resources
controlplane.configuration.allowedOrigins[0]string"http://studio.wundergraph.local"
controlplane.configuration.authRedirectUristring"http://controlplane.wundergraph.local/v1/auth/callback"
controlplane.configuration.cdnBaseUrlstring"http://cosmo-cdn:8787"
controlplane.configuration.clickhouseDsnstring"http://default:changeme@cosmo-clickhouse:8123/?database=cosmo"
controlplane.configuration.clickhouseMigrationDsnstring"clickhouse://default:changeme@cosmo-clickhouse:9000/cosmo?dial_timeout=15s&max_execution_time=60"
controlplane.configuration.databaseUrlstring"postgres://postgres:changeme@cosmo-postgresql:5432/controlplane"
controlplane.configuration.debugSQLboolfalse
controlplane.configuration.logLevelstring"debug"
controlplane.configuration.prometheus.enabledboolfalseEnables prometheus metrics support. Default is false.
controlplane.configuration.prometheus.gcpMonitoring.enabledboolfalseEnables gcp support . Default is false.
controlplane.configuration.prometheus.gcpMonitoring.intervalstring"60s"Scrape interval. Default is "60s".
controlplane.configuration.prometheus.gcpMonitoring.timeoutstring"50s"Scrape timeout. Default is "50s".
controlplane.configuration.prometheus.hoststring"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.pathstring"/metrics"The HTTP path where metrics are exposed. Default is "/metrics".
controlplane.configuration.prometheus.portint8088The port where metrics are exposed. Default is port 8088.
controlplane.configuration.redisHoststring"cosmo-redis-master"
controlplane.configuration.redisPortint6379
controlplane.configuration.s3AccessKeyIdstring""s3 access key id, can be used instead of [username]:[password] in the url
controlplane.configuration.s3Endpointstring""The endpoint of the S3 bucket.
controlplane.configuration.s3ForcePathStylestring"true"Forces usage of path style urls for S3. Default is true.
controlplane.configuration.s3Regionstring"auto"The region where the S3 bucket is located.
controlplane.configuration.s3SecretAccessKeystring""s3 secret access key, can be used instead of [username]:[password] in the url
controlplane.configuration.s3StorageUrlstring"http://minio:changeme@cosmo-minio:9000/cosmo"
controlplane.configuration.smtpobject{"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.enabledboolfalseEnables the smtp server. Default is false.
controlplane.configuration.smtp.hoststring"smtp.postmarkapp.com"The host to connect to. Default is "smtp.postmarkapp.com".
controlplane.configuration.smtp.passwordstring""The password to use. Default is "".
controlplane.configuration.smtp.portint587The port the smtp server listens to. Default is 587.
controlplane.configuration.smtp.requireTlsbooltrueForces the client to use STARTTLS. Default is true.
controlplane.configuration.smtp.securebooltrueDefines if the connection should use SSL. Default is true.
controlplane.configuration.smtp.usernamestring""The username to use. Default is "".
controlplane.jobsobject{"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.activateOrganizationobject{"additionalLabels":{},"enabled":false,"id":"123","slug":"foo"}Used to activate an organization and remove the scheduled deletion
controlplane.jobs.activateOrganization.additionalLabelsobject{}Adds additional labels to the job
controlplane.jobs.activateOrganization.enabledboolfalseEnables the job to be run
controlplane.jobs.activateOrganization.idstring"123"The unique identifier of the organization
controlplane.jobs.activateOrganization.slugstring"foo"The slug of the organization
controlplane.jobs.clickhouseMigration.additionalLabelsobject{}Adds additional labels to the clickhouse migration job (see: .Values.global.otelcollector)
controlplane.jobs.databaseMigration.additionalLabelsobject{}Adds additional labels to the database-migration job
controlplane.jobs.deactivateOrganizationobject{"additionalLabels":{},"enabled":false,"id":"123","reason":"","slug":"foo"}Used to deactivate an organization with a reason and schedule deletion
controlplane.jobs.deactivateOrganization.additionalLabelsobject{}Adds additional labels to the job
controlplane.jobs.deactivateOrganization.enabledboolfalseEnables the job to be run
controlplane.jobs.deactivateOrganization.idstring"123"The unique identifier of the organization
controlplane.jobs.deactivateOrganization.reasonstring""The reason for deactivation
controlplane.jobs.deactivateOrganization.slugstring"foo"The slug of the organization
controlplane.jobs.deleteUserobject{"additionalLabels":{},"email":"[email protected]","enabled":false,"id":"123"}Used to delete the user
controlplane.jobs.deleteUser.additionalLabelsobject{}Adds additional labels to the job
controlplane.jobs.deleteUser.emailstring"[email protected]"The email of the user
controlplane.jobs.deleteUser.enabledboolfalseEnables the job to be run
controlplane.jobs.deleteUser.idstring"123"The unique identifier of the user
controlplane.jobs.enableSplitConfigLoading.additionalLabelsobject{}Adds additional labels to the job
controlplane.jobs.enableSplitConfigLoading.enabledboolfalseEnables the job to be run
controlplane.jobs.enableSplitConfigLoading.idstring"123"The unique identifier of the organization
controlplane.jobs.seedOrganization.additionalLabelsobject{}Adds additional labels to the job (see: .Values.global.seed)
global.cdn.enabledbooltrue
global.cdn.ingress.enabledbooltrueInclude this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings.
global.cdn.portint8787
global.cdn.webUrlstring"http://cdn.wundergraph.local"
global.clickhouse.enabledbooltrue
global.controlplane.admissionJwtSecretstring"uXDxJLEvrw4aafPfrf3rRotCoBzRfPEW"
global.controlplane.enabledbooltrue
global.controlplane.ingress.enabledbooltrueInclude this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings.
global.controlplane.jwtSecretstring"1YQ4YR18WWNEWCLUIUKN5WVQ31HWDHEM"
global.controlplane.portint3001
global.controlplane.webUrlstring"http://controlplane.wundergraph.local"
global.graphqlmetrics.enabledbooltrue
global.graphqlmetrics.ingress.enabledbooltrueInclude this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings.
global.graphqlmetrics.portint4005
global.graphqlmetrics.webUrlstring"http://graphqlmetrics.wundergraph.local"
global.helmTests.enabledboolfalse
global.keycloak.adminPasswordstring"changeme"
global.keycloak.adminUserstring"admin"
global.keycloak.apiUrlstring"http://cosmo-keycloak-http:8080"
global.keycloak.clientIdstring"studio"
global.keycloak.databasestring"keycloak"
global.keycloak.databasePasswordstring"changeme"
global.keycloak.databaseSchemastring"public"
global.keycloak.databaseUsernamestring"postgres"
global.keycloak.enabledbooltrue
global.keycloak.ingress.enabledbooltrueInclude this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings.
global.keycloak.loginRealmstring"master"
global.keycloak.portint8080
global.keycloak.realmstring"cosmo"
global.keycloak.smtpServer.authbooltrueUse auth for connecting to the smtpServer.
global.keycloak.smtpServer.fromstring"[email protected]"Set 'from' email to be used.
global.keycloak.smtpServer.fromDisplayNamestring"WunderGraph Cosmo"Set fromDisplayName.
global.keycloak.smtpServer.hoststring"smtp.postmarkapp.com"Set mail host to be used, usually the same one as the one in the controlplane.
global.keycloak.smtpServer.passwordstring"**********"Set password to be used for connecting to the smtpServer.
global.keycloak.smtpServer.portint587The port of the mail server.
global.keycloak.smtpServer.replyToDisplayNamestring"WunderGraph Cosmo"Set replyToDisplayName.
global.keycloak.smtpServer.sslboolfalseEnable or disable using ssl for the smtpServer connection.
global.keycloak.smtpServer.starttlsbooltrueEnable or disable starttls.
global.keycloak.smtpServer.usernamestring""Set username, maps to smtpServer.user in the imported keycloak realm
global.keycloak.webUrlstring"http://keycloak.wundergraph.local"
global.minio.enabledbooltrue
global.otelcollector.enabledbooltrue
global.otelcollector.ingress.enabledbooltrueInclude this component in the shared Cosmo Ingress when the component is enabled. Independent of the subchart ingress settings.
global.otelcollector.portint4318
global.otelcollector.webUrlstring"http://otelcollector.wundergraph.local"
global.postgresql.enabledbooltrue
global.redis.enabledbooltrue
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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcosmo is pinned at v0.22.2 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