pocketbase

by Techwolf12

Helm chartv0.29.3App v0.29.3Verified publisher

A Helm chart for deploying PocketBase.io as a K8S deployment

About this chart

Pocketbase

This is an unofficial helm chart for running Pocketbase on K8s with Helm.

Installation

You can install pocketbase on K8S by running the command:

helm repo add techwolf12 https://helm.techwolf12.nl/
helm repo update
helm upgrade pocketbase techwolf12/pocketbase --version 0.25.9 --install

Run tests

You can run pocketbase tests by running the command:

helm test pocketbase

Parameters

PocketBase configuration

NameDescriptionValue
replicaCountHow many replicas of pocketbase should be deployed, it is ignored if autoscaling is enabled1
nameOverrideString to partially override the deployment name (will maintain the release name)""
fullnameOverrideString to fully override the deployment namepocketbase
flags.encryptionEnvThe PB_ENCRYPTION_KEY 32 characters string, see https://pocketbase.io/docs/going-to-production/#:~:text=enable%20settings%20encryption for more infos""
image.repositoryThe repository (and image name) where the pocketbase docker image is storedrg.fr-par.scw.cloud/sepropriodev/pocketbase
image.pullPolicyDeployment pull policyIfNotPresent
image.tagOverrides the image tag whose default is the chart appVersion""
persistence.storageHow much storage space should be reserved for PocketBase2Gi
persistence.storageClassThe PV storage class (a storageClass with Retain policy is recommended)""
ingress.enabledWhether to enable the ingressfalse
ingress.clusterIssuerThe Cert Manager cluster issuer (https://cert-manager.io/docs/configuration/acme/http01/)letsencrypt-prod
ingress.dnsThe dns name which will expose PocketBase""
resourcesThe resources associated with the deployment{}
autoscaling.enabledWhether to enable autoscalingfalse
autoscaling.minReplicasnumber of min replicas1
autoscaling.maxReplicasnumber of max replicas10
autoscaling.targetCPUUtilizationPercentagetargetCPUUtilizationPercentage80
autoscaling.targetMemoryUtilizationPercentagetargetMemoryUtilizationPercentage80

Upgrading

Please always make backups before upgrading.

helm upgrade pocketbase techwolf12/pocketbase --version 0.25.9 --install

Deploy pocketbase with OpenTenant

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