Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions config/olm/bases/plugin-barman-cloud.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,31 @@ spec:
- The CloudNativePG operator, version 1.30 or later.
- The plugin **must** be installed in the same namespace as the
CloudNativePG operator.
- TLS certificates used for the mutual TLS (mTLS) communication
with the CloudNativePG operator.
- Two TLS secrets, `barman-cloud-server-tls` and
`barman-cloud-client-tls`, used for the mutual TLS (mTLS)
communication with the CloudNativePG operator (see below).

### Post-installation: TLS certificates
### Post-installation: TLS secrets

The plugin and the CloudNativePG operator communicate over mutual TLS.
After installing the plugin, create the following secrets in the
plugin's namespace:
After installing the plugin, the following two secrets of type
`kubernetes.io/tls` (with the `tls.crt` and `tls.key` keys) must exist
in the plugin's namespace:

- `barman-cloud-server-tls`: server certificate, valid for the
`barman-cloud` DNS name
- `barman-cloud-client-tls`: client certificate used by the
CloudNativePG operator

The plugin starts serving requests as soon as both secrets exist; no
restart is needed. The recommended way to create and renew them is
[cert-manager](https://cert-manager.io/):
The plugin pod starts without them, but until both secrets exist
CloudNativePG cannot register the plugin, and clusters that use it
report an unknown plugin. The plugin starts serving requests as soon as
both secrets exist; no restart is needed.

The secrets can be generated with any tool, as long as they have the
names and content described above. For example,
with [cert-manager](https://cert-manager.io/) installed, the following
resources create and renew them:

```yaml
apiVersion: cert-manager.io/v1
Expand Down
12 changes: 9 additions & 3 deletions config/olm/metadata/dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
dependencies:
- type: olm.package
- type: olm.gvk
value:
packageName: cloudnative-pg
version: ">=1.30.0"
group: postgresql.cnpg.io
kind: Cluster
version: v1
- type: olm.gvk
value:
group: postgresql.cnpg.io
kind: Backup
version: v1
37 changes: 37 additions & 0 deletions web/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,43 @@ kubectl -n cnpg-system rollout status deploy/barman-cloud

Example output:

```output
deployment "barman-cloud" successfully rolled out
```

</TabItem>
<TabItem value="olm" label="OperatorHub (OLM)">

The plugin is published on [OperatorHub](https://operatorhub.io/operator/plugin-barman-cloud)
and can be installed with the [Operator Lifecycle Manager](https://olm.operatorframework.io/)
(OLM). Follow the installation instructions on that page.

:::important
This installation method **requires CloudNativePG to be installed through OLM
as well**. The plugin depends on the CloudNativePG APIs (the `Cluster` and
`Backup` resources of the `postgresql.cnpg.io` group), so OLM looks for an
operator it manages that provides them. If CloudNativePG was installed in any
other way (for example with the manifest or the Helm chart), OLM does not
detect it and **installs a second CloudNativePG operator** to satisfy the
dependency, which conflicts with the existing one.

If your CloudNativePG operator is not managed by OLM, use one of the other
installation methods instead.
:::

Unlike the other installation methods, OLM **does not create the plugin's TLS
secrets**. You must provide them after the installation, as described in the
post-installation section of the
[OperatorHub page](https://operatorhub.io/operator/plugin-barman-cloud).

Finally, check that the deployment is up and running:

```sh
kubectl -n <cnpg namespace> rollout status deploy/barman-cloud
```

Example output:

```output
deployment "barman-cloud" successfully rolled out
```
Expand Down
Loading