baserow

by Blackbird Cloud

Helm chartv1.0.17App 1.31.1Verified publisher

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

NameDescriptionValue
global.baserow.imageRegistryGlobal Docker image registrybaserow
global.baserow.imagePullSecretsGlobal Docker registry secret names as an array[]
global.baserow.image.tagGlobal Docker image tag1.31.1
global.baserow.serviceAccount.sharedSet to true to share the service account between all application components.true
global.baserow.serviceAccount.createSet to true to create a service account to share between all application components.true
global.baserow.serviceAccount.nameConfigure a name for service account to share between all application components.baserow
global.baserow.serviceAccount.annotationsConfigure annotations for the shared service account.{}
global.baserow.serviceAccount.automountServiceAccountTokenAutomount the service account token to the pods.false
global.baserow.backendConfigMapConfigure a name for the backend configmap.backend-config
global.baserow.backendSecretConfigure a name for the backend secret.backend-secret
global.baserow.frontendConfigMapConfigure a name for the frontend configmap.frontend-config
global.baserow.sharedConfigMapConfigure a name for the shared configmap.shared-config
global.baserow.envFromConfigure secrets or configMaps to be used as environment variables for all components.[]
global.baserow.domainConfigure the domain for the frontend application.cluster.local
global.baserow.backendDomainConfigure the domain for the backend application.api.cluster.local
global.baserow.objectsDomainConfigure the domain for the external facing minio api.objects.cluster.local
global.baserow.applicationBuilderDomainsConfigure extra domains to be used for the application builder apps.[]
global.baserow.containerSecurityContext.enabledEnabled containers' Security Contextfalse
global.baserow.containerSecurityContext.seLinuxOptionsSet SELinux options in container{}
global.baserow.containerSecurityContext.runAsUserSet containers' Security Context runAsUser""
global.baserow.containerSecurityContext.runAsGroupSet containers' Security Context runAsGroup""
global.baserow.containerSecurityContext.runAsNonRootSet container's Security Context runAsNonRoot""
global.baserow.containerSecurityContext.privilegedSet container's Security Context privilegedfalse
global.baserow.containerSecurityContext.readOnlyRootFilesystemSet container's Security Context readOnlyRootFilesystemfalse
global.baserow.containerSecurityContext.allowPrivilegeEscalationSet container's Security Context allowPrivilegeEscalationfalse
global.baserow.containerSecurityContext.capabilities.dropList of capabilities to be dropped[]
global.baserow.containerSecurityContext.capabilities.addList of capabilities to be added[]
global.baserow.containerSecurityContext.seccompProfile.typeSet container's Security Context seccomp profile""
global.baserow.securityContext.enabledEnable security contextfalse
global.baserow.securityContext.fsGroupChangePolicySet filesystem group change policyAlways
global.baserow.securityContext.sysctlsSet kernel settings using the sysctl interface[]
global.baserow.securityContext.supplementalGroupsSet filesystem extra groups[]
global.baserow.securityContext.fsGroupGroup ID for the pod""

Baserow Configuration

NameDescriptionValue
generateJwtSecretGenerate a new JWT secrettrue

Shared ConfigMap Configuration

NameDescriptionValue
sharedConfigMapAdditional 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.

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