backuppc
by Helm
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
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | nil |
nameOverride | String to partially override common.names.fullname | nil |
fullnameOverride | String to fully override common.names.fullname | nil |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
BackupPC Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | WordPress image registry | docker.io |
image.repository | WordPress image repository | adferrand/backuppc |
image.tag | WordPress image tag (immutable tags are recommended) | 4.4.0 |
image.pullPolicy | WordPress image pull policy | IfNotPresent |
image.pullSecrets | WordPress image pull secrets | [] |
image.debug | Enable image debug mode | false |
BackupPC Configuration parameters
| Name | Description | Value |
|---|---|---|
backuppcUuid | BackupPC proccess UUID | 1000 |
backuppcGuid | BackupPC proccess UUID | 1000 |
backuppcWebUser | BackupPC Web Username | backuppc |
backuppcWebPasswd | BackupPC Web Password | password |
tz | Timezone | Europe/Paris |
backuppcScheme | Container http scheme | http |
smtpHost | SMTP server host | "" |
smtpMailDomain | SMTP 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
| Name | Description | Value |
|---|---|---|
schedulerName | Alternate scheduler | nil |
serviceAccountName | ServiceAccount name | default |
hostAliases | *BackupPC pod host aliases | [] |
extraVolumes | Optionally specify extra list of additional volumes for WordPress pods | [] |
extraVolumeMounts | Optionally specify extra list of additional volumeMounts for WordPress container(s) | [] |
sidecars | Add additional sidecar containers to the WordPress pod | {} |
initContainers | Add additional init containers to the WordPress pods | {} |
podLabels | Extra labels for WordPress pods | {} |
podAnnotations | Annotations for WordPress pods | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match. Ignored if affinity is set | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set | [] |
affinity | Affinity for pod assignment | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | [] |
resources.limits | The resources limits for the WordPress container | {} |
resources.requests | The requested resources for the WordPress container | {} |
containerPorts.http | WordPress HTTP container port | 8080 |
containerPorts.https | WordPress HTTPS container port | 8443 |
podSecurityContext.enabled | Enabled WordPress pods' Security Context | true |
podSecurityContext.fsGroup | Set WordPress pod's Security Context fsGroup | 1001 |
containerSecurityContext.enabled | Enabled WordPress containers' Security Context | true |
containerSecurityContext.runAsUser | Set WordPress container's Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot | Set WordPress container's Security Context runAsNonRoot | true |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 120 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 6 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe | true |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 30 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 5 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 6 |
readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
customLivenessProbe | Custom livenessProbe that overrides the default one | {} |
customReadinessProbe | Custom readinessProbe that overrides the default one | {} |
Traffic Exposure Parameters
| Name | Description | Value |
|---|---|---|
service.type | WordPress service type | LoadBalancer |
service.port | WordPress service HTTP port | 80 |
service.httpsPort | WordPress service HTTPS port | 443 |
service.httpsTargetPort | Target port for HTTPS | https |
service.nodePorts.http | Node port for HTTP | nil |
service.nodePorts.https | Node port for HTTPS | nil |
service.clusterIP | WordPress service Cluster IP | nil |
service.loadBalancerIP | WordPress service Load Balancer IP | nil |
service.loadBalancerSourceRanges | WordPress service Load Balancer sources | [] |
service.externalTrafficPolicy | WordPress service external traffic policy | Cluster |
service.annotations | Additional custom annotations for WordPress service | {} |
service.extraPorts | Extra port to expose on WordPress service | [] |
ingress.enabled | Enable 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbackuppc is pinned at v0.0.2 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