cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit ed46cc1cb1afc63941fad3b49c36fe272ca9efee
parent 9c066852a514878df304c9fd750e044a871d14fe
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 28 Apr 2024 00:40:08 +0200

Fix postgres operator

Diffstat:
Mapps/2024_cluster/kustomization.yaml | 4++--
Aapps/2024_cluster/postgres-operator-values.yaml | 46++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/apps/2024_cluster/kustomization.yaml b/apps/2024_cluster/kustomization.yaml @@ -4,5 +4,5 @@ resources: - ../base/victoria-metrics-k8s-stack - ../base/traefik - ../base/postgres-operator -#patchesStrategicMerge: -# - loki-stack-values.yaml +patchesStrategicMerge: + - postgres-operator-values.yaml diff --git a/apps/2024_cluster/postgres-operator-values.yaml b/apps/2024_cluster/postgres-operator-values.yaml @@ -0,0 +1,46 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2beta2 +kind: HelmRelease +metadata: + name: postgres-operator + namespace: postgres-operator +spec: + chart: + spec: + version: "1.11.x" + values: + configKubernetes: + cluster_name_label: "midnightthoughts" + enable_readiness_probe: true +--- +apiVersion: helm.toolkit.fluxcd.io/v2beta2 +kind: HelmRelease +metadata: + name: postgres-operator-ui + namespace: postgres-operator +spec: + chart: + spec: + version: "1.11.x" + values: + envs: + teams: + - "midnightthoughts" + - "matrix" + superuser_team: "midnightthoughts" + targetNamespace: "*" + operatorClusterNameLabel: "midnightthoughts" + ingress: + enabled: true + annotations: + traefik.ingress.kubernetes.io/router.middlewares: traefik-ingress-sso@kubernetescrd + cert-manager.io/cluster-issuer: letsencrypt-http + hosts: + - host: postgres-ui.midnightthoughts.space + paths: ["/"] + tls: + - secretName: postgres-ui.midnightthoughts.space-tls + hosts: + - postgres-ui.midnightthoughts.space + configKubernetes: + enable_pod_antiaffinity: true