plugin-barman-cloud

by CloudNativePG

Helm chartv0.9.0App v0.16.0Apache-2.0Verified publisher

Helm Chart for CloudNativePG's CNPG-I backup plugin using Barman Cloud

About this chart

plugin-barman-cloud

Helm Chart for CloudNativePG's CNPG-I backup plugin using Barman Cloud

Homepage: https://cloudnative-pg.io

About this chart

Helm chart to install the CNPG-I Barman Cloud Plugin, the CloudNativePG plugin that adds backup and restore capabilities to PostgreSQL Cluster resources via Barman Cloud.

NOTE: this chart supports only the latest point release of the plugin.

IMPORTANT: this chart requires a working installation of cert-manager. Please refer to the cert-manager installation page for more information.

The chart deploys the plugin only. It does not install the CloudNativePG operator (use the companion cloudnative-pg chart for that), and it does not create any Cluster resource. To provision a PostgreSQL cluster that uses this plugin, use the cluster chart (see the Cluster chart README for details) or apply your own Cluster manifest.

Getting Started

Prerequisites

This chart requires cert-manager to issue the plugin's TLS certificates. Install it and wait until it is ready before installing this chart, otherwise the install fails because the certificates cannot be issued.

Add the chart repository

helm repo add cnpg https://cloudnative-pg.github.io/charts
helm repo update

Install the plugin

helm upgrade --install plugin-barman-cloud \
  --namespace cnpg-system \
  cnpg/plugin-barman-cloud

See the Values section below for the full list of configurable parameters.

Verify the installation

kubectl -n cnpg-system get deploy
kubectl -n cnpg-system rollout status deploy/plugin-barman-cloud

Uninstalling

helm uninstall plugin-barman-cloud --namespace cnpg-system

Warning Uninstalling the chart does not remove the plugin's CRDs (for example ObjectStore). Deleting them removes every ObjectStore resource and the backup configuration it holds, so only delete the CRDs if you are sure no resource depends on them.

Source Code

Requirements

Kubernetes: >=1.29.0-0

Values

KeyTypeDefaultDescription
additionalArgslist[]Additional arguments to be added to the operator's args list.
additionalEnvlist[]Array containing extra environment variables which can be templated.
affinityobject{}Affinity for the operator to be installed.
certificate.createClientCertificatebooltrueSpecifies whether the client certificate should be created.
certificate.createIssuerbooltrueSpecifies whether the issuer should be created.
certificate.createServerCertificatebooltrueSpecifies whether the server certificate should be created.
certificate.durationstring"2160h"The duration of the certificates.
certificate.issuerNamestring""The name of the issuer to use for the certificates.
certificate.renewBeforestring"360h"The renew before time for the certificates.
commonAnnotationsobject{}Annotations to be added to all other resources.
containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":10001,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}Container Security Context.
crds.createbooltrueSpecifies whether the CRDs should be created when installing the chart.
dnsPolicystring""
fullnameOverridestring""
hostNetworkboolfalse
image.pullPolicystring"IfNotPresent"
image.registrystring"ghcr.io"
image.repositorystring"cloudnative-pg/plugin-barman-cloud"
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]
logLevelstring"info"Log verbosity level for the plugin barman cloud with values: [error, warning, info, debug, trace].
nameOverridestring""
namespaceOverridestring""
nodeSelectorobject{}Nodeselector for the operator to be installed.
podAnnotationsobject{}Annotations to be added to the pod.
podLabelsobject{}Labels to be added to the pod.
podSecurityContextobject{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Security Context for the whole pod.
priorityClassNamestring""Priority indicates the importance of a Pod relative to other Pods.
rbac.cnpgGroupstring"postgresql.cnpg.io"The API group of the Cluster CRD the plugin is granted access to (get/list/watch on backups, update on clusters/finalizers). Override this if you run a CloudNativePG-based operator whose Cluster CRD lives under a different API group.
rbac.createbooltrueSpecifies whether Role and RoleBinding should be created.
replicaCountint1
resourcesobject{}
service.ipFamilieslist[]Sets the families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6.
service.ipFamilyPolicystring""Set the ip family policy to configure dual-stack see Configure dual-stack
service.namestring"barman-cloud"DO NOT CHANGE THE SERVICE NAME as it is currently used to generate the certificate and can not be configured
service.portint9090
serviceAccount.createbooltrueSpecifies whether the service account should be created.
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template.
sidecarImage.registrystring"ghcr.io"
sidecarImage.repositorystring"cloudnative-pg/plugin-barman-cloud-sidecar"
sidecarImage.tagstring""Overrides the image tag whose default is the chart appVersion.
tolerationslist[]Tolerations for the operator to be installed.
topologySpreadConstraintslist[]Topology Spread Constraints for the operator to be installed.
updateStrategyobject{}Update strategy for the operator. ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy

Maintainers

NameEmailUrl
itay-grudev[email protected]
quantumenigmaa[email protected]
quentinbisson[email protected]

Contributing

Please read the code of conduct and the guidelines to contribute to the project.

Copyright

Helm charts for CloudNativePG are distributed under Apache License 2.0.

Deploy plugin-barman-cloud with OpenTenant

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