Skip to content

Commit

Permalink
deploy postgres 16
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuste committed May 14, 2024
1 parent a2c7fea commit 9836728
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kubernetes/clusters/tilia/apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
namespace: flux-system
- name: postgres
namespace: flux-system
- name: postgres-16
namespace: flux-system
sourceRef:
kind: GitRepository
name: flux-system
Expand Down
16 changes: 16 additions & 0 deletions kubernetes/clusters/tilia/postgres-16.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: postgres-16
namespace: flux-system
spec:
interval: 5m0s
dependsOn:
- name: helm-repositories
namespace: flux-system
sourceRef:
kind: GitRepository
name: flux-system
path: ./kubernetes/infrastructure/postgres-16
prune: true
validation: client
5 changes: 5 additions & 0 deletions kubernetes/infrastructure/postgres-16/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: postgres
resources:
- release.yaml
30 changes: 30 additions & 0 deletions kubernetes/infrastructure/postgres-16/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: postgres-16
namespace: postgres
spec:
chart:
spec:
chart: postgresql
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
version: '^15.3.1'
values:
global:
postgresql:
auth:
username: 'user'
database: 'public-transport'
existingSecret: 'postgres-secret'
secretKeys:
adminPasswordKey: 'admin-password'
userPasswordKey: 'user-password'
replicationPasswordKey: 'replication-password'
primary:
resourcesPreset: 'medium'
persistence:
size: '20Gi'
interval: 5m

0 comments on commit 9836728

Please sign in to comment.