cosmotech-business-webapp

by Cosmo Tech

Helm chartv0.4.0Verified publisher

Cosmo Tech Business Web Application

About this chart

cosmotech-business-webapp

Cosmo Tech Business Web Application

Compatibility

Chart versionCompatible Cosmo Tech Webapp versionsCompatible Cosmo Tech API versions
0.17.0.0-beta.* (instance-specific server only)4.0.0-onprem
>= 0.27.0.0-beta.*4.0.0-onprem
>= 0.2>= 7.0.0>= 5.0.0

Source Code

Values

KeyTypeDefaultDescription
cosmotech.apiUrlstring""URL of the Cosmo Tech API used by the webapp (e.g. https://mytenant.cosmotech.com/mytenant/v5)
ingress.enabledbooltruewhether to deploy the ingress for the webapp server and functions
keycloak.realmUrlstring""URL of the keycloak realm that authenticates the users of the webapp. Required to validate user tokens in the webapp functions. (e.g. https://mytenant.cosmotech.com/keycloak/realms/myrealm)
namestring"cosmotech-business-webapp"prefix of the deployments, ingress and services that will be created
powerbi.clientIdstring""client id of the app registration that delivers PowerBI tokens for the GetEmbedInfo function
powerbi.clientSecretstring""client secret of the app registration that delivers PowerBI tokens for the GetEmbedInfo function
powerbi.tenantIdstring""tenant id of the app registration that delivers PowerBI tokens for the GetEmbedInfo function
resources.limits.cpustring"1000m"
resources.limits.ephemeral-storagestring"2Gi"
resources.limits.memorystring"256Mi"
resources.requests.cpustring"200m"
resources.requests.ephemeral-storagestring"50Mi"
resources.requests.memorystring"128Mi"
superset.apiUrlstring""URL of the Superset instance API. This is required to fetch guest tokens, when Superset dashboards are embedded in the webapp. (e.g. http://superset-web.mytenant.svc.cluster.local/api/v1)
superset.superuser.passwordstring""Superset user password to use as credentials when calling superset /login endpoint, in order to generate guest tokens for Superset
superset.superuser.usernamestring""Superset user name to use as credentials when calling superset /login endpoint, in order to generate guest tokens for Superset
webapp.contentSecurityPolicyobject{}CSP to set on the webapp e.g: contentSecurityPolicy: connect-src: - '*.mytenantplatform.platform.cosmotech.com' - https://mytenantplatform.platform.cosmotech.com frame-src: - https://superset-mytenantplatform.platform.cosmotech.com
webapp.domainNamestring""domain name to use to host the webapp server (e.g. mytenant.cosmotech.com)
webapp.functions.image.pullPolicystring"Always"policy to pull the image
webapp.functions.image.pullSecretstring""name of the secret containing registry credentials to pull private images (e.g. cosmotech-business-webapp-brewery-registry)
webapp.functions.image.repositorystring""container image to use for webapp functions (e.g. ghcr.io/cosmo-tech/azure-sample-webapp/webapp-functions)
webapp.functions.image.tagstring""container image tag
webapp.functions.nodeSelectorobject{}node selector for webapp functions deployment
webapp.functions.tolerationslist[]tolerations for webapp functions deployment
webapp.globalConfigurationobject{}Configuration environment variables of the webapp e.g: globalConfiguration: APP_REGISTRATION_CLIENT_ID: "" AUTH_KEYCLOAK_CLIENT_ID: cosmotech-client-webapp AUTH_KEYCLOAK_REALM: https://mytenantplatform.platform.cosmotech.com/keycloak/realms/mytenant AUTH_KEYCLOAK_ROLES_JWT_CLAIM: userRoles AZURE_TENANT_ID: "" COSMOTECH_API_SCOPE: https://mytenantplatform.platform.cosmotech.com/platform DEFAULT_BASE_PATH: https://mytenantplatform.platform.cosmotech.com/mytenant/api RUN_API_URL: https://mytenantplatform/mytenant/api ADL_API_URL: https://mytenantplatform/mytenant/asset ORGANIZATION_ID: o-xxxxxxxxxxx PUBLIC_URL: /mytenant/webapp WORKSPACES_IDS_FILTER: null
webapp.publicUrlstring""URL path to use as root of the webapp (e.g. /cosmotech-webapp/brewery)
webapp.server.image.pullPolicystring"Always"policy to pull the image
webapp.server.image.pullSecretstring""name of the secret containing registry credentials to pull private images (e.g. cosmotech-business-webapp-brewery-registry)
webapp.server.image.repositorystring""container image to use as webapp server (e.g. ghcr.io/cosmo-tech/azure-sample-webapp/webapp-server)
webapp.server.image.tagstring""container image tag
webapp.server.nodeSelectorobject{}node selector for webapp server deployment
webapp.server.tolerationslist[]tolerations for webapp server deployment

Deploy cosmotech-business-webapp with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cosmotech-business-webapp 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 chartcosmotech-business-webapp is pinned at v0.4.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