switch to opconfig CRD as default configuration

This commit is contained in:
Felix Kunde
2019-11-28 18:03:02 +01:00
parent 5515640111
commit 15eb7c22c4
5 changed files with 33 additions and 23 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- configmap.yaml
- postgresql-operator-default-configuration.yaml
- operator-service-account-rbac.yaml
- postgres-operator.yaml
+5 -5
View File
@@ -30,8 +30,8 @@ spec:
readOnlyRootFilesystem: true
env:
# provided additional ENV vars can overwrite individual config map entries
- name: CONFIG_MAP_NAME
value: "postgres-operator"
# In order to use the CRD OperatorConfiguration instead, uncomment these lines and comment out the two lines above
# - name: POSTGRES_OPERATOR_CONFIGURATION_OBJECT
# value: postgresql-operator-default-configuration
- name: POSTGRES_OPERATOR_CONFIGURATION_OBJECT
value: postgresql-operator-default-configuration
# In order to use the ConfigMap instead, uncomment these lines and comment out the two lines above
#- name: CONFIG_MAP_NAME
# value: "postgres-operator"
@@ -21,7 +21,7 @@ configuration:
kubernetes:
cluster_domain: cluster.local
cluster_labels:
application: spilo
application: spilo
cluster_name_label: cluster-name
# custom_pod_annotations:
# keya: valuea
@@ -42,11 +42,12 @@ configuration:
pod_role_label: spilo-role
pod_service_account_name: zalando-postgres-operator
pod_terminate_grace_period: 5m
secret_name_template: "{username}.{cluster}.credentials.{tprkind}.{tprgroup}"
secret_name_template: "{username}.{cluster}.credentials"
# spilo_fsgroup: 103
spilo_privileged: false
# toleration: {}
# watched_namespace: ""
# toleration:
# postgres: "key:postgres,operator:Exists,effect:NoSchedule"
watched_namespace: "*"
postgres_pod_resources:
default_cpu_limit: "3"
default_cpu_request: 100m
@@ -60,14 +61,14 @@ configuration:
resource_check_interval: 3s
resource_check_timeout: 10m
load_balancer:
# db_hosted_zone: ""
enable_master_load_balancer: false
db_hosted_zone: db.example.com
enable_master_load_balancer: true
enable_replica_load_balancer: false
# custom_service_annotations:
# keyx: valuex
# keyy: valuey
master_dns_name_format: "{cluster}.{team}.{hostedzone}"
replica_dns_name_format: "{cluster}-repl.{team}.{hostedzone}"
master_dns_name_format: "{cluster}.{team}.staging.{hostedzone}"
replica_dns_name_format: "{cluster}-repl.{team}.staging.{hostedzone}"
aws_or_gcp:
# additional_secret_mount: "some-secret-name"
# additional_secret_mount_path: "/some/dir"