deploy postgresql / or try to
This commit is contained in:
parent
1372e4393d
commit
db695f06ad
@ -106,3 +106,10 @@ patches:
|
||||
kind: HelmRelease
|
||||
name: s3-proxy
|
||||
namespace: postgresql
|
||||
- path: ./patches/postgresql.yaml
|
||||
target:
|
||||
group: helm.toolkit.fluxcd.io
|
||||
version: v2
|
||||
kind: HelmRelease
|
||||
name: postgresql
|
||||
namespace: postgresql
|
||||
|
||||
40
clusters/yc-k8s-test/infrastructure/patches/postgresql.yaml
Normal file
40
clusters/yc-k8s-test/infrastructure/patches/postgresql.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: postgresql
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 15m
|
||||
values:
|
||||
global:
|
||||
defaultStorageClass: local-path
|
||||
primary:
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 20Gi
|
||||
nodeSelector:
|
||||
dedicated: db
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
value: db
|
||||
effect: NoSchedule
|
||||
contour:
|
||||
enabled: true
|
||||
sharedPreloadLibraries: "timescaledb,pg_stat_statements"
|
||||
databases:
|
||||
- name: sarex_db
|
||||
user: sarex
|
||||
extensions:
|
||||
- ltree
|
||||
- pg_stat_statements
|
||||
- uuid-ossp
|
||||
restoreFromDump: true
|
||||
dumpKey: sarex_db.sql
|
||||
- name: zitadel
|
||||
user: zitadel
|
||||
extensions: []
|
||||
restoreFromDump: false
|
||||
s3-proxy:
|
||||
endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local"
|
||||
@ -8,6 +8,7 @@ resources:
|
||||
- kafka
|
||||
- local-path-provisioner
|
||||
- minio
|
||||
- postgresql
|
||||
- rabbitmq
|
||||
- redis
|
||||
- s3-proxy
|
||||
|
||||
22
infrastructure/postgresql/base/helmrelease.yaml
Normal file
22
infrastructure/postgresql/base/helmrelease.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: postgresql
|
||||
spec:
|
||||
interval: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: postgresql-contour
|
||||
version: "17"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
5
infrastructure/postgresql/base/kustomization.yaml
Normal file
5
infrastructure/postgresql/base/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: postgresql
|
||||
resources:
|
||||
- helmrelease.yaml
|
||||
4
infrastructure/postgresql/kustomization.yaml
Normal file
4
infrastructure/postgresql/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- base
|
||||
Loading…
Reference in New Issue
Block a user