CloudNative Postgress Operator
We use the Cloud Native PostgeSQL Operator to create postgresql clusters and manage backups to S3.
In the CloudNative PostgeSQL Operator Backups for S3 are done to local s3 endpoints consistently and to a configurable remote endpoint.
Example yaml config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 | apps:
cnpg_operator:
description: |
CloudNative PostgeSQL Operator for Kubernetes. This lets you create and
manage many clusters of postgresql, including backups to s3.
enabled: true
argo:
# secret keys to provide for the argocd secret plugin app, none by default
secret_keys: {}
# git repo to install the Argo CD app from
repo: https://github.com/small-hack/argocd-apps
# path in the argo repo to point to. Trailing slash very important!
path: postgres/operators/cloud-native-postgres/
# either the branch or tag to point at in the argo repo above
revision: main
# kubernetes cluster to install the k8s app into, defaults to Argo CD default
cluster: https://kubernetes.default.svc
# namespace to install the k8s app in
namespace: cnpg-system
# recurse directories in the provided git repo
directory_recursion: false
# source repos for Argo CD App Project (in addition to argo.repo)
project:
name: cnpg-operator
source_repos:
- https://github.com/small-hack/argocd-apps
- https://cloudnative-pg.github.io/charts
destination:
# automatically includes the app's namespace and argocd's namespace
namespaces: []
|