apps/postgres-operator/resources/db/default-cluster.yaml

96 lines
2.1 KiB
YAML
Raw Normal View History

2023-11-14 21:12:33 +00:00
---
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: default-cluster
namespace: postgres
spec:
postgresVersion: 15
users:
- name: postgres
- name: coder
databases:
- coder
- name: fider
databases:
- fider
- name: forgejo
databases:
- forgejo
- name: hedgedoc
databases:
- hedgedoc
2023-12-21 13:56:26 +00:00
- name: linkwarden
databases:
- linkwarden
2023-11-14 21:12:33 +00:00
- name: nextcloud
databases:
- nextcloud
- name: noco
databases:
- noco
2024-04-29 07:03:05 +00:00
- name: umami
databases:
- umami
2023-11-21 21:32:09 +00:00
- name: vaultwarden
databases:
- vaultwarden
2023-11-14 21:12:33 +00:00
- name: vikunja
databases:
- vikunja
- name: zipline
databases:
- zipline
instances:
- name: instance1
replicas: 2
2024-05-09 13:09:25 +00:00
resources:
requests:
cpu: 500m
memory: 800Mi
limits:
cpu: 500m
memory: 800Mi
2023-11-14 21:12:33 +00:00
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:
2024-02-14 20:45:58 +00:00
manual:
repoName: repo1
options:
- --type=full
2023-11-14 21:12:33 +00:00
configuration:
- secret:
name: pgo-s3-creds
global:
2024-02-14 20:45:58 +00:00
repo1-retention-full: "14"
repo1-retention-full-type: time
repo1-retention-diff: "6"
2023-11-14 21:12:33 +00:00
repo1-path: /pgbackrest/default-cluster/repo1
repo1-s3-uri-style: path
repos:
- name: repo1
2024-05-07 10:08:31 +00:00
schedules:
full: "0 1 * * 0"
differential: "0 1 * * 1-6"
s3:
bucket: backup
endpoint: s3.icb4dc0.de
2024-05-09 13:09:25 +00:00
region: hel1