-
Notifications
You must be signed in to change notification settings - Fork 14
/
operator.yaml
43 lines (43 loc) · 1.55 KB
/
operator.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: postgres-operator
spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://raw.githubusercontent.com/zalando/postgres-operator/master/charts/postgres-operator/
chart: postgres-operator
version: 1.14.0
sourceRef:
kind: HelmRepository
name: zalando-postgres-operator
namespace: flux-system
interval: 5m
# https://github.com/zalando/postgres-operator/blob/master/charts/postgres-operator/values.yaml
values:
configUsers:
# postgres username used for replication between instances
# replication_username: standby
configMajorVersionUpgrade:
# "off": no upgrade, "manual": manifest triggers action, "full": minimal version violation triggers too
major_version_upgrade_mode: full
configKubernetes:
#enable_pod_antiaffinity: true
enable_cross_namespace_secret: false
#pod_environment_configmap: "postgres-pod-config"
watched_namespace: "*"
#list of labels that can be inherited from the cluster manifest
inherited_labels:
- application
- environment
# Disable PDB since they prevent the drain
# https://github.com/zalando/postgres-operator/issues/547
enable_pod_disruption_budget: false
# configure resource requests for the Postgres pods
configPostgresPodResources:
# CPU limits for the postgres containers
default_cpu_limit: "2"
# memory limits for the postgres containers
default_memory_limit: 2000Mi