ansible/roles/postgres/defaults/main.yaml

93 lines
2.9 KiB
YAML
Raw Normal View History

postgres_operator_chart_ref: "ghp/postgres-operator"
postgres_operator_ui_chart_ref: "ghp/postgres-operator-ui"
postgres_operator_ui_short_name: "postgres-operator-ui"
2021-01-09 17:54:42 +00:00
postgres_operator_default_values:
configKubernetes:
pod_environment_configmap: "{{ postgres_db_namespace | default(namespace) }}/postgresql-pod-environment"
storage_resize_mode: pvc
watched_namespace: "{{ postgres_operator_watch_namespace | default(namespace) }}"
configMajorVersionUpgrade:
# "off": no upgrade, "manual": manifest triggers action, "full": minimal version violation triggers too
major_version_upgrade_mode: "full"
2021-01-09 17:54:42 +00:00
postgres_operator_ui_default_values:
replicaCount: 1
envs:
# IMPORTANT: While operator chart and UI chart are idendependent, this is the interface between
# UI and operator API. Insert the service name of the operator API here!
operatorApiUrl: "http://postgres-operator:8080"
operatorClusterNameLabel: "cluster-name"
resourcesVisible: "False"
targetNamespace: "{{ namespace }}"
teams:
- "acid"
- "{{ postgres_db_team | default(namespace) }}"
2021-01-09 17:54:42 +00:00
# configure UI ingress. If needed: "enabled: true"
ingress:
enabled: true
ingressClassName: "{{ postgres_operator_ui_ingress_class | default(internal_ingress_class) }}"
2021-01-09 17:54:42 +00:00
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
hosts:
- host: "{{ postgres_operator_ui_short_name }}.{{ domain }}"
paths: ["/"]
2021-01-09 17:54:42 +00:00
tls:
- secretName: "{{ postgres_operator_ui_short_name }}.{{ domain }}-tls"
2021-01-09 17:54:42 +00:00
hosts:
- "{{ postgres_operator_ui_short_name }}.{{ domain }}"
2021-01-09 17:54:42 +00:00
postgres_db_definitions:
ghp-postgres: |
kind: "postgresql"
apiVersion: "acid.zalan.do/v1"
metadata:
name: "{{ postgres_db_team | default(namespace) }}-postgres"
namespace: "{{ postgres_db_namespace | default(namespace) }}"
labels:
team: "{{ postgres_db_team | default(namespace) }}"
spec:
teamId: "{{ postgres_db_team | default(namespace) }}"
postgresql:
version: "16"
2021-01-09 17:54:42 +00:00
numberOfInstances: 2
volume:
size: "{{ postgres_size | default('10Gi') }}"
users:
gitea: []
bitwarden: []
wikijs: []
nextcloud: []
roundcube: []
2021-02-01 18:17:48 +00:00
harbor: []
2021-02-09 23:28:01 +00:00
mastodon: []
2021-01-09 17:54:42 +00:00
databases:
gitea: gitea
bitwarden: bitwarden
wikijs: wikijs
nextcloud: nextcloud
roundcube: roundcube
2021-02-01 18:17:48 +00:00
harbor_registry: harbor
harbor_clair: harbor
harbor_notary_server: harbor
harbor_notary_signer: harbor
2021-02-09 23:28:01 +00:00
mastodon: mastodon
2021-01-09 17:54:42 +00:00
preparedDatabases:
peertube:
defaultUsers: true
extensions:
pg_trgm: pg_catalog
unaccent: public
allowedSourceRanges: []
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi