backuppc

by Helm

Helm chartv0.0.2App 4.0.0-latest

Backup tool.

About this chart

BackupPC

BackupPC is a high-performance, enterprise-grade system for backing up Linux, Windows and macOS PCs and laptops to a server's disk. BackupPC is highly configurable and easy to install and maintain.

TL;DR

$ helm repo add fermosit https://harbor.fermosit.es/chartrepo/library
$ helm install my-release fermosit/backuppc

Introduction

This chart bootstraps a BackupPC deployment on a Kubernetes cluster using the Helm package manager.

This chart is based on another awesome chart by bitnami.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure
  • ReadWriteOnce volumes

Installing the Chart

To install the chart with the release name my-release:

helm install my-release fermosit/backuppc

The command deploys BackupPC on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes versionnil
nameOverrideString to partially override common.names.fullnamenil
fullnameOverrideString to fully override common.names.fullnamenil
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]

BackupPC Image parameters

NameDescriptionValue
image.registryWordPress image registrydocker.io
image.repositoryWordPress image repositoryadferrand/backuppc
image.tagWordPress image tag (immutable tags are recommended)4.4.0
image.pullPolicyWordPress image pull policyIfNotPresent
image.pullSecretsWordPress image pull secrets[]
image.debugEnable image debug modefalse

BackupPC Configuration parameters

NameDescriptionValue
backuppcUuidBackupPC proccess UUID1000
backuppcGuidBackupPC proccess UUID1000
backuppcWebUserBackupPC Web Usernamebackuppc
backuppcWebPasswdBackupPC Web Passwordpassword
tzTimezoneEurope/Paris
backuppcSchemeContainer http schemehttp
smtpHostSMTP server host""
smtpMailDomainSMTP server mail domain""

The above parameters map to the env variables defined in docker image environment vars. For more information please refer to the docker image documentation.

WordPress deployment parameters

NameDescriptionValue
schedulerNameAlternate schedulernil
serviceAccountNameServiceAccount namedefault
hostAliases*BackupPC pod host aliases[]
extraVolumesOptionally specify extra list of additional volumes for WordPress pods[]
extraVolumeMountsOptionally specify extra list of additional volumeMounts for WordPress container(s)[]
sidecarsAdd additional sidecar containers to the WordPress pod{}
initContainersAdd additional init containers to the WordPress pods{}
podLabelsExtra labels for WordPress pods{}
podAnnotationsAnnotations for WordPress pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
resources.limitsThe resources limits for the WordPress container{}
resources.requestsThe requested resources for the WordPress container{}
containerPorts.httpWordPress HTTP container port8080
containerPorts.httpsWordPress HTTPS container port8443
podSecurityContext.enabledEnabled WordPress pods' Security Contexttrue
podSecurityContext.fsGroupSet WordPress pod's Security Context fsGroup1001
containerSecurityContext.enabledEnabled WordPress containers' Security Contexttrue
containerSecurityContext.runAsUserSet WordPress container's Security Context runAsUser1001
containerSecurityContext.runAsNonRootSet WordPress container's Security Context runAsNonRoottrue
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe120
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe30
readinessProbe.periodSecondsPeriod seconds for readinessProbe10
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
readinessProbe.failureThresholdFailure threshold for readinessProbe6
readinessProbe.successThresholdSuccess threshold for readinessProbe1
customLivenessProbeCustom livenessProbe that overrides the default one{}
customReadinessProbeCustom readinessProbe that overrides the default one{}

Traffic Exposure Parameters

NameDescriptionValue
service.typeWordPress service typeLoadBalancer
service.portWordPress service HTTP port80
service.httpsPortWordPress service HTTPS port443
service.httpsTargetPortTarget port for HTTPShttps
service.nodePorts.httpNode port for HTTPnil
service.nodePorts.httpsNode port for HTTPSnil
service.clusterIPWordPress service Cluster IPnil
service.loadBalancerIPWordPress service Load Balancer IPnil
service.loadBalancerSourceRangesWordPress service Load Balancer sources[]
service.externalTrafficPolicyWordPress service external traffic policyCluster
service.annotationsAdditional custom annotations for WordPress service{}
service.extraPortsExtra port to expose on WordPress service[]
ingress.enabledEnable ingress record generation for WordPress

Deploy backuppc with OpenTenant

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