fix: postgresql

This commit is contained in:
auricom
2021-04-21 02:05:38 +02:00
parent b8b8631146
commit 3845787509
5 changed files with 97 additions and 103 deletions

View File

@@ -0,0 +1,29 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: postgresql-kube
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
postgresqlUsername: postgres
postgresqlPassword: ${SECRET_POSTGRESQL_KUBE_POSTGRES_PASSWORD}
persistence:
enabled: true
existingClaim: postgresql-kube

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-kube
namespace: data
labels:
kasten-io-snapshots: "enable"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 50Gi