chore: Add postgres operator

This commit is contained in:
Laur IVAN 2026-02-07 18:01:56 +01:00
parent 7ec07ce241
commit cf7c913b8c
9 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,15 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: crunchy-postgres-operator
spec:
path: ./apps/database-system/crunchy-postgres-operator/app
sourceRef:
kind: GitRepository
name: flux-system
namespace: flux-system
targetNamespace: database-system
interval: 10m
prune: true
wait: true

View File

@ -0,0 +1,30 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: pgo
spec:
interval: 10m
chartRef:
kind: OCIRepository
name: pgo
values:
debug: false
replicas: 2
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
app.kubernetes.io/name: pgo
resources:
controller:
requests:
cpu: 20m
memory: 64Mi
limits:
memory: 256Mi

View File

@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helm-release.yaml
- ./oci-repository.yaml

View File

@ -0,0 +1,14 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: OCIRepository
metadata:
name: pgo
spec:
interval: 15m
url: oci://registry.developers.crunchydata.com/crunchydata/pgo
ref:
tag: 6.0.0
layerSelector:
mediaType: application/vnd.cncf.helm.chart.content.v1.tar+gzip
operation: copy

View File

@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./app.ks.yaml

View File

@ -0,0 +1,10 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: database-system
resources:
- ./namespace.yaml
# - ./crunchy-postgres-operator
# - ./dragonfly-operator
# - ./rabbitmq-operator

View File

@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: _
annotations:
kustomize.toolkit.fluxcd.io/prune: disabled

View File

@ -0,0 +1,10 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: storage-system
resources:
- ./namespace.yaml
# - ./openebs
# - ./snapshot-controller
# - ./volsync

View File

@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: _
annotations:
kustomize.toolkit.fluxcd.io/prune: disabled