Helm chartv0.4.1App 3.1.1MITVerified publisher

GoBackup is a CLI and Web UI for database backups to local, cloud or remote storage with notification support

About this chart

Ad Noctem Collective - GoBackup Helm Chart

GoBackup is a CLI and Web UI for database backups to local, cloud or remote storage (FTP, SCP, S3, GCS, Aliyun OSS ...) with encryption support. It supports running these tasks on a schedule defined within a configuration file. Sending automatic notifications to a wide array of services (Slack, SMTP, Discord, GitHub, ...) is also supported. It delivers all of these features within a single Docker image available on Docker Hub.

Head to the GoBackup Homepage for in-depth documentation and configuration guides.

✨ TL;DR

Helm Repository Installation

helm repo add adnoctem https://adnoctem.github.io/charts
helm install gobackup adnoctem/gobackup --version X.Y.Z

OCI Installation

helm install oci://ghcr.io/adnoctem/charts/gobackup:X.Y.Z

Introduction

This chart bootstraps a GoBackup Deployment on a Kubernetes cluster using the Helm package manager. For cluster networking a Service and Ingress manifest is also created, whereas the Ingress needs to be explicitly enabled. Lastly the chart configures a PodDisruptionBudget if enabled. RBAC manifests are enabled by default.

The chart supports the configuration of all GoBackup configuration options via the gobackup key in Helm's values and makes use of the official Docker Hub container image, although this is configurable via the Image Parameters.

[!NOTE] This chart passes most gobackup.models[].databases[].config, .storages[].config, and .notifiers[].config keys straight through to GoBackup's YAML config, but the username/password keys of every entry are always wired to a generated environment variable backed by a Secret (see Common Secret parameters below) - a database, storage, or notifier type that authenticates without a username/password pair (e.g. sqlite, or a local storage) is not currently supported by this chart, even though GoBackup itself doesn't require credentials for those types.

Upgrading

To 0.4.0 (GoBackup 2.11.2 -> 3.1.1)

  • appVersion bumped from 2.11.2 to 3.1.1. Review the upstream changelog for anything between those versions that affects your configuration; notably, MSSQL database config keys switched to snake_case (e.g. trust_server_certificate, all_databases, skip_databases) somewhere in that range - update your gobackup.models[].databases[].config accordingly if you use MSSQL.
  • Added support for the firebird database type and the googlechat notifier type, both added upstream since 2.16.0/2.13.0 respectively.
  • Added gobackup.web.enabled to allow disabling the built-in Web UI entirely; it defaults to true, matching previous behavior.
  • Fixed two internal validation helpers that checked for the wrong model key (dead code - neither is currently invoked from any template, so this has no behavioral effect).

Parameters

Image parameters

NameDescriptionValue
image.registryThe Docker registry to pull the image fromdocker.io
image.repositoryThe registry repository to pull the image fromhuacnlee/gobackup
image.tagThe image tag to pullv3.1.1
image.digestThe image digest to pull""
image.pullPolicyThe Kubernetes image pull policyIfNotPresent
image.pullSecretsA list of secrets to use for pulling images from private registries[]

Name overrides

NameDescriptionValue
nameOverrideString to partially override gobackup.fullname""
fullnameOverrideString to fully override gobackup.fullname""

GoBackup Configuration parameters

NameDescriptionValue
gobackup.workdirDefine a working directory for GoBackup to generate temporary files/tmp
gobackup.web.enabledWhether to enable the built-in Web UI at alltrue
gobackup.web.hostThe host the network socket should bind to. You will most likely never change this.""
gobackup.web.portThe port to bind the network socket to2703
gobackup.web.usernameThe HTTP Basic Auth username""
gobackup.web.passwordThe HTTP Basic Auth password""
gobackup.web.existingSecretThe name of a basic-auth secret containing aforementioned credentials""
gobackup.models[0].nameThe name of the model to create (the YAML keys everything is nested under, e.g. model_name1 in ref)default
gobackup.models[0].descriptionDefine a description for this GoBackup modelDefault GoBackup model
gobackup.models[0].defaultSet a default storage namedefault
gobackup.models[0].scheduleConfigure a schedule on which the model should run{}
gobackup.models[0].scripts.beforeA script to be executed before the backup""
gobackup.models[0].scripts.afterA script to be executed after the backup""
gobackup.models[0].databasesConfigure the databases in the model[]
gobackup.models[0].storagesConfigure the storages in the model[]
gobackup.models[0].notifiersConfigure the notifiers in the model[]
gobackup.models[0].compressionThe compression format used for created backups (e.g. tgz)""
gobackup.models[0].encryptionThe encryption configuration (locked to type openssl){}
gobackup.models[0].archiveConfigure archival of directories{}
gobackup.models[0].splitterConfigure backup chunking{}
configMap.annotationsAnnotations for the ConfigMap resource{}
configMap.labelsExtra Labels for the ConfigMap resource{}

Common Secret parameters

NameDescriptionValue
secret.annotationsCommon annotations for the SMTP, HIBP, Admin and Database secrets{}
secret.labelsCommon extra labels for the SMTP, HIBP, Admin and Database secrets{}

Ingress parameters

NameDescriptionValue
ingress.enabledWhether to enable Ingressfalse
ingress.classNameThe IngressClass to use for the pod's ingress""
ingress.whitelistA comma-separated list of IP addresses to whitelist""
ingress.annotationsAnnotations for the Ingress resource{}
ingress.tlsA list of hostnames and secret names to use for TLS[]
ingress.hostsA list of hosts for the Ingress resource[]

Service parameters

NameDescriptionValue
service.typeThe type of service to createClusterIP
service.portThe port to use on the service8273
service.nodePortThe Node port to use on the service30080
service.extraPortsExtra ports to add to the service[]
service.annotationsAnnotations for the service resource{}
service.labelsLabels for the service resource{}
service.externalTrafficPolicyThe external traffic policy for the serviceCluster
service.internalTrafficPolicyThe internal traffic policy for the serviceCluster
service.clusterIPDefine a static cluster IP for the service""
service.loadBalancerIPSet the Load Balancer IP""
service.loadBalancerClassDefine Load Balancer class if service type is LoadBalancer (optional, cloud specific)""
service.loadBalancerSourceRangesService Load Balancer source ranges[]
service.externalIPsService External IPs[]
service.sessionAffinitySession Affinity for Kubernetes service, can be "None" or "ClientIP"None
service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
service.ipFamilyPolicyThe ipFamilyPolicy{}

RBAC parameters

NameDescriptionValue
rbac.createWhether to create RBAC resourcestrue
rbac.rulesExtra rules to add to the Role[]

Service Account parameters

NameDescriptionValue
serviceAccount.createWhether a service account should be createdtrue
serviceAccount.automountWhether to automount the service account tokenfalse
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameA custom name for the service account, otherwise gobackup.fullname is used""
serviceAccount.secretsA list of secrets mountable by this

Deploy gobackup with OpenTenant

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