Peter Kurfer
0ac1d722a3
All checks were successful
continuous-integration/drone/push Build is passing
77 lines
No EOL
1.9 KiB
YAML
77 lines
No EOL
1.9 KiB
YAML
---
|
|
apiVersion: postgres-operator.crunchydata.com/v1beta1
|
|
kind: PostgresCluster
|
|
metadata:
|
|
name: default-cluster
|
|
namespace: postgres
|
|
spec:
|
|
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.4-1
|
|
postgresVersion: 15
|
|
users:
|
|
- name: postgres
|
|
- name: coder
|
|
databases:
|
|
- coder
|
|
- name: drone
|
|
databases:
|
|
- drone
|
|
- name: fider
|
|
databases:
|
|
- fider
|
|
- name: forgejo
|
|
databases:
|
|
- forgejo
|
|
- name: grafana
|
|
databases:
|
|
- grafana
|
|
- name: hedgedoc
|
|
databases:
|
|
- hedgedoc
|
|
- name: nextcloud
|
|
databases:
|
|
- nextcloud
|
|
- name: noco
|
|
databases:
|
|
- noco
|
|
- name: vikunja
|
|
databases:
|
|
- vikunja
|
|
- name: zipline
|
|
databases:
|
|
- zipline
|
|
instances:
|
|
- name: instance1
|
|
replicas: 2
|
|
dataVolumeClaimSpec:
|
|
storageClassName: hcloud-volumes
|
|
accessModes:
|
|
- "ReadWriteOnce"
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
affinity:
|
|
podAntiAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 1
|
|
podAffinityTerm:
|
|
topologyKey: kubernetes.io/hostname
|
|
labelSelector:
|
|
matchLabels:
|
|
postgres-operator.crunchydata.com/cluster: default-cluster
|
|
postgres-operator.crunchydata.com/instance-set: instance1
|
|
|
|
backups:
|
|
pgbackrest:
|
|
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.47-1
|
|
configuration:
|
|
- secret:
|
|
name: pgo-s3-creds
|
|
global:
|
|
repo1-path: /pgbackrest/default-cluster/repo1
|
|
repo1-s3-uri-style: path
|
|
repos:
|
|
- name: repo1
|
|
s3:
|
|
bucket: backup
|
|
endpoint: 2df513adaee2eeae12106af900bed297.r2.cloudflarestorage.com
|
|
region: us-east-1 |