baserow
The open platform to create scalable databases and applications—without coding.
About this chart
Baserow Helm Chart
Baserow is an open-source no-code database tool and Airtable alternative. It is a modern database tool that allows you to create a database, web-based application, and API without code. It is built on top of Django and Vue.js and is designed to be easily deployed to a platform like Kubernetes.
This chart can have dependencies on other charts, such as PostgreSQL, Redis, Minio, and Caddy. The chart can be configured to use an existing instance of these services or deploy them as part of the Baserow deployment.
Installing the Chart
To install the chart with the release name my-baserow run the following commands:
From repo
helm repo add baserow-chart https://baserow.gitlab.io/baserow-chart
helm install my-baserow baserow-chart/baserow --namespace baserow --create-namespace --values config.yaml
From source code
helm dependency update
helm install my-baserow . --namespace baserow --create-namespace
helm upgrade my-baserow . --namespace baserow
Minimal configuration
Make the following changes to the values file to deploy the Baserow application with the default configuration.
global:
baserow:
domain: "your-baserow-domain.com"
backendDomain: "api.your-baserow-domain.com"
objectsDomain: "objects.your-baserow-domain.com"
Using existing Postgres and Redis
You can use the following configuration to use an existing Postgres database and Redis cluster.
redis:
enabled: false
postgresql:
enabled: false
Add the following configuration to the backendSecrets to use an existing managed database and Redis cluster.
backendSecrets:
DATABASE_HOST: "my-baserow-baserow-backend-postgresql"
DATABASE_PORT: "5432"
DATABASE_NAME: "baserow"
DATABASE_USER: "baserow"
DATABASE_PASSWORD: "password"
REDIS_HOST: "my-baserow-baserow-backend-redis"
REDIS_PORT: "6379"
REDIS_PASSWORD: "password"
Caddy Ingress Configuration
Caddy is a web server that can be used as an ingress controller. When using Caddy, set the ingress configuration to use Caddy as the ingress controller. Make note of the onDemandAsk configuration, which is used to trigger on-demand TLS certificates. Pointed here to the health check endpoint of caddy itself to always create new certificates. On production workloads set it to the backend api endpoint to check if the domain exists in the database.
caddy:
enabled: true
ingressController:
className: caddy
config:
email: "[email protected]"
proxyProtocol: true
experimentalSmartSort: false
onDemandTLS: true
onDemandAsk: http://:9765/healthz
Autoscaling configuration
For each Baserow component, a HorizontalPodAutoscaler can be configured individually. The following example enables autoscaling on the wsgi backend deployment.
baserow-backend-wsgi:
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 10
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
onDemandAsk: "http://my-baserow-baserow-backend-wsgi/api/builder/domains/ask-public-domain-exists/"
Different Cloud Providers
On different cloud providers, you may need to configure the Object storage, ingress and Load Balancer differently. Below are some examples of how to configure them.
AWS
S3 Config
When deploying to AWS, you can use the following configuration to use S3 for object storage. Make sure to disable minio as it is not needed.
minio:
enabled: false
backendConfigMap:
AWS_STORAGE_BUCKET_NAME: "my-baserow-baserow-backend-bucket"
AWS_S3_CUSTOM_DOMAIN: "my-baserow-baserow-backend-bucket"
AWS_S3_REGION_NAME: "us-east-1"
AWS_S3_ENDPOINT_URL: "https://s3.us-east-1.amazonaws.com/my-baserow-baserow-backend-bucket"
AWS Authentication
AWS authentication can be set by service account or environment variables. Below is an example of setting the AWS credentials using the environment variables.
backendSecrets:
AWS_ACCESS_KEY_ID: "my-access-key"
AWS_SECRET_ACCESS_KEY: "my-secret-key"
When running on EKS you can also use a service account with an IAM role and permissions. For the service account, you can use the following configuration. To create the corresponding IAM role, refer to the AWS documentation. https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html
global:
baserow:
serviceAccount:
shared: true
create: true
name: baserow
annotations: {}
Ingress
When deploying to AWS, you can use the following configuration to create a Network Load Balancer. For more information about the annotations, refer to the AWS documentation. https://docs.aws.amazon.com/eks/latest/userguide/network-load-balancing.html
ingress:
enabled: true
caddy:
enabled: true
ingressController:
className: caddy
config:
email: "[email protected]"
proxyProtocol: true
experimentalSmartSort: false
onDemandTLS: true
onDemandAsk: http://:9765/healthz
loadBalancer:
externalTrafficPolicy: "Local"
annotations:
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip"
service.beta.kubernetes.io/aws-load-balancer-healthcheck-protocol: "TCP"
service.beta.kubernetes.io/aws-load-balancer-alpn-policy: "HTTP2Preferred"
Digital ocean
Ingress
When deploying to Digital Ocean, you can use the following configuration to create a Load Balancer. For more information about the annotations, refer to the Digital Ocean documentation. https://docs.digitalocean.com/products/kubernetes/how-to/add-load-balancers/
ingress:
enabled: true
caddy:
enabled: true
ingressController:
config:
email: "[email protected]"
proxyProtocol: true
experimentalSmartSort: false
onDemandTLS: true
onDemandRateLimitInterval: "2m"
onDemandRateLimitBurst: 5
onDemandAsk: http://:9765/healthz
loadBalancer:
externalTrafficPolicy: "Local"
annotations:
service.beta.kubernetes.io/do-loadbalancer-protocol: "http"
service.beta.kubernetes.io/do-loadbalancer-algorithm: "round_robin"
service.beta.kubernetes.io/do-loadbalancer-tls-ports: "443"
service.beta.kubernetes.io/do-loadbalancer-tls-passthrough: "true"
service.beta.kubernetes.io/do-loadbalancer-redirect-http-to-https: "true"
service.beta.kubernetes.io/do-loadbalancer-enable-proxy-protocol: "true"
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.baserow.imageRegistry | Global Docker image registry | baserow |
global.baserow.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.baserow.image.tag | Global Docker image tag | 1.31.1 |
global.baserow.serviceAccount.shared | Set to true to share the service account between all application components. | true |
global.baserow.serviceAccount.create | Set to true to create a service account to share between all application components. | true |
global.baserow.serviceAccount.name | Configure a name for service account to share between all application components. | baserow |
global.baserow.serviceAccount.annotations | Configure annotations for the shared service account. | {} |
global.baserow.serviceAccount.automountServiceAccountToken | Automount the service account token to the pods. | false |
global.baserow.backendConfigMap | Configure a name for the backend configmap. | backend-config |
global.baserow.backendSecret | Configure a name for the backend secret. | backend-secret |
global.baserow.frontendConfigMap | Configure a name for the frontend configmap. | frontend-config |
global.baserow.sharedConfigMap | Configure a name for the shared configmap. | shared-config |
global.baserow.envFrom | Configure secrets or configMaps to be used as environment variables for all components. | [] |
global.baserow.domain | Configure the domain for the frontend application. | cluster.local |
global.baserow.backendDomain | Configure the domain for the backend application. | api.cluster.local |
global.baserow.objectsDomain | Configure the domain for the external facing minio api. | objects.cluster.local |
global.baserow.applicationBuilderDomains | Configure extra domains to be used for the application builder apps. | [] |
global.baserow.containerSecurityContext.enabled | Enabled containers' Security Context | false |
global.baserow.containerSecurityContext.seLinuxOptions | Set SELinux options in container | {} |
global.baserow.containerSecurityContext.runAsUser | Set containers' Security Context runAsUser | "" |
global.baserow.containerSecurityContext.runAsGroup | Set containers' Security Context runAsGroup | "" |
global.baserow.containerSecurityContext.runAsNonRoot | Set container's Security Context runAsNonRoot | "" |
global.baserow.containerSecurityContext.privileged | Set container's Security Context privileged | false |
global.baserow.containerSecurityContext.readOnlyRootFilesystem | Set container's Security Context readOnlyRootFilesystem | false |
global.baserow.containerSecurityContext.allowPrivilegeEscalation | Set container's Security Context allowPrivilegeEscalation | false |
global.baserow.containerSecurityContext.capabilities.drop | List of capabilities to be dropped | [] |
global.baserow.containerSecurityContext.capabilities.add | List of capabilities to be added | [] |
global.baserow.containerSecurityContext.seccompProfile.type | Set container's Security Context seccomp profile | "" |
global.baserow.securityContext.enabled | Enable security context | false |
global.baserow.securityContext.fsGroupChangePolicy | Set filesystem group change policy | Always |
global.baserow.securityContext.sysctls | Set kernel settings using the sysctl interface | [] |
global.baserow.securityContext.supplementalGroups | Set filesystem extra groups | [] |
global.baserow.securityContext.fsGroup | Group ID for the pod | "" |
Baserow Configuration
| Name | Description | Value |
|---|---|---|
generateJwtSecret | Generate a new JWT secret | true |
Shared ConfigMap Configuration
| Name | Description | Value |
|---|---|---|
sharedConfigMap | Additional configuration for the shared ConfigMap, key value map. | {} |
Frontend ConfigMap Configuration
| Name | Description | Value | | ----------------------------------------- | -----------------------------------
Deploy baserow with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has baserow 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 chartbaserow is pinned at v1.0.17 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