feat: add postgresql

This commit is contained in:
auricom
2021-04-20 22:20:26 +02:00
parent a90feac07d
commit ec80dee8cd
6 changed files with 164 additions and 90 deletions

View File

@@ -0,0 +1,36 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: postgresql-ha
namespace: data
spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://charts.bitnami.com/bitnami/
chart: postgresql
version: 10.3.18
sourceRef:
kind: HelmRepository
name: bitnami-charts
namespace: flux-system
interval: 5m
values:
image:
registry: docker.io
repository: bitnami/postgresql
tag: 13.2.0
pullPolicy: IfNotPresent
postgresql:
## PostgreSQL configuration parameters
##
username: postgres
password: ${SECRET_POSTGRESQL_POSTGRES_PASSWORD}
# database:
## Persistence parameters
##
persistence:
enabled: true
existingClaim: postgresql

View File

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

View File

@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgresql
namespace: data
labels:
kasten-io/snapshots: "enable"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 50Gi