++ deploy zitadel to a dedicated postgresql 17
This commit is contained in:
parent
9f582bdc84
commit
6beaa1bbbf
@ -5,6 +5,7 @@ resources:
|
|||||||
- ../../../infrastructure/rabbitmq
|
- ../../../infrastructure/rabbitmq
|
||||||
- ../../../infrastructure/camunda
|
- ../../../infrastructure/camunda
|
||||||
- ../../../infrastructure/vault
|
- ../../../infrastructure/vault
|
||||||
|
- ../../../infrastructure/postgresql
|
||||||
- ../../../infrastructure/zitadel
|
- ../../../infrastructure/zitadel
|
||||||
patches:
|
patches:
|
||||||
- path: ./patches/kafka.yaml
|
- path: ./patches/kafka.yaml
|
||||||
@ -55,6 +56,18 @@ patches:
|
|||||||
version: v1
|
version: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
name: vault
|
name: vault
|
||||||
|
- path: ./patches/postgresql.yaml
|
||||||
|
target:
|
||||||
|
group: helm.toolkit.fluxcd.io
|
||||||
|
version: v2
|
||||||
|
kind: HelmRelease
|
||||||
|
name: postgresql
|
||||||
|
namespace: postgresql
|
||||||
|
- path: ./patches/postgresql-namespace-delete.yaml
|
||||||
|
target:
|
||||||
|
version: v1
|
||||||
|
kind: Namespace
|
||||||
|
name: postgresql
|
||||||
- path: ./patches/zitadel.yaml
|
- path: ./patches/zitadel.yaml
|
||||||
target:
|
target:
|
||||||
group: helm.toolkit.fluxcd.io
|
group: helm.toolkit.fluxcd.io
|
||||||
|
|||||||
@ -178,7 +178,7 @@ spec:
|
|||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
persistence:
|
persistence:
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
storageClass: local-path
|
storageClass: nfs01
|
||||||
identityKeycloak:
|
identityKeycloak:
|
||||||
postgresql:
|
postgresql:
|
||||||
auth:
|
auth:
|
||||||
@ -187,7 +187,7 @@ spec:
|
|||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
persistence:
|
persistence:
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
storageClass: local-path
|
storageClass: nfs01
|
||||||
vaultEnv:
|
vaultEnv:
|
||||||
enabled: true
|
enabled: true
|
||||||
role: camunda
|
role: camunda
|
||||||
@ -203,7 +203,7 @@ spec:
|
|||||||
path: secrets/data/camunda/postgresql
|
path: secrets/data/camunda/postgresql
|
||||||
key: password
|
key: password
|
||||||
global:
|
global:
|
||||||
storageClass: local-path
|
storageClass: nfs01
|
||||||
tolerations: []
|
tolerations: []
|
||||||
postgresql:
|
postgresql:
|
||||||
auth:
|
auth:
|
||||||
@ -212,12 +212,12 @@ spec:
|
|||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
persistence:
|
persistence:
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
storageClass: local-path
|
storageClass: nfs01
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
master:
|
master:
|
||||||
persistence:
|
persistence:
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
storageClass: local-path
|
storageClass: nfs01
|
||||||
tolerations: []
|
tolerations: []
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
@ -236,7 +236,7 @@ spec:
|
|||||||
- name: regcred
|
- name: regcred
|
||||||
tolerations: []
|
tolerations: []
|
||||||
zeebe:
|
zeebe:
|
||||||
pvcStorageClassName: local-path
|
pvcStorageClassName: nfs01
|
||||||
image:
|
image:
|
||||||
pullSecrets:
|
pullSecrets:
|
||||||
- name: regcred
|
- name: regcred
|
||||||
|
|||||||
@ -26,7 +26,7 @@ spec:
|
|||||||
global:
|
global:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- regcred
|
- regcred
|
||||||
defaultStorageClass: local-path
|
defaultStorageClass: nfs01
|
||||||
image:
|
image:
|
||||||
pullSecrets:
|
pullSecrets:
|
||||||
- regcred
|
- regcred
|
||||||
@ -35,7 +35,7 @@ spec:
|
|||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
persistence:
|
persistence:
|
||||||
size: 8Gi
|
size: 8Gi
|
||||||
storageClass: local-path
|
storageClass: nfs01
|
||||||
overrideConfiguration:
|
overrideConfiguration:
|
||||||
offsets.topic.replication.factor: 1
|
offsets.topic.replication.factor: 1
|
||||||
transaction.state.log.replication.factor: 1
|
transaction.state.log.replication.factor: 1
|
||||||
|
|||||||
@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: postgresql
|
||||||
|
$patch: delete
|
||||||
104
clusters/d8-ugmk-prod/infrastructure/patches/postgresql.yaml
Normal file
104
clusters/d8-ugmk-prod/infrastructure/patches/postgresql.yaml
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: postgresql
|
||||||
|
namespace: zitadel
|
||||||
|
spec:
|
||||||
|
interval: 5m
|
||||||
|
timeout: 2h
|
||||||
|
|
||||||
|
install:
|
||||||
|
timeout: 2h
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
timeout: 2h
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
security:
|
||||||
|
allowInsecureImages: true
|
||||||
|
defaultStorageClass: nfs01
|
||||||
|
postgresql:
|
||||||
|
auth:
|
||||||
|
username: ""
|
||||||
|
database: ""
|
||||||
|
secretKeys:
|
||||||
|
userPasswordKey: "postgres-password"
|
||||||
|
auth:
|
||||||
|
username: ""
|
||||||
|
database: ""
|
||||||
|
secretKeys:
|
||||||
|
userPasswordKey: "postgres-password"
|
||||||
|
image:
|
||||||
|
registry: cr.yandex/crp3ccidau046kdj8g9q
|
||||||
|
repository: contour/postgresql
|
||||||
|
tag: 17.0.7
|
||||||
|
pullPolicy: Always
|
||||||
|
metrics:
|
||||||
|
enabled: false
|
||||||
|
prometheusRule:
|
||||||
|
enabled: false
|
||||||
|
primary:
|
||||||
|
automountServiceAccountToken: true
|
||||||
|
containerSecurityContext:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
persistence:
|
||||||
|
storageClass: nfs01
|
||||||
|
size: 20Gi
|
||||||
|
customLivenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 6
|
||||||
|
customReadinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 6
|
||||||
|
customStartupProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 6
|
||||||
|
nodeSelector:
|
||||||
|
node.deckhouse.io/group: generic
|
||||||
|
tolerations: []
|
||||||
|
contour:
|
||||||
|
enabled: true
|
||||||
|
adminUser: "postgres"
|
||||||
|
vault:
|
||||||
|
enabled: true
|
||||||
|
role: postgresql
|
||||||
|
authPath: auth/kubernetes
|
||||||
|
secretPath: secrets/data/postgresql/admin
|
||||||
|
secretKey: postgres-password
|
||||||
|
usersSecretPath: secrets/data/postgresql/users
|
||||||
|
sharedPreloadLibraries: "timescaledb,pg_stat_statements"
|
||||||
|
databases:
|
||||||
|
- name: zitadel
|
||||||
|
user: zitadel
|
||||||
|
passwordKey: zitadel
|
||||||
|
extensions: []
|
||||||
|
restoreFromDump: false
|
||||||
@ -83,7 +83,7 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
persistence:
|
persistence:
|
||||||
storageClass: local-path
|
storageClass: nfs01
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
auth:
|
auth:
|
||||||
securePassword: true
|
securePassword: true
|
||||||
|
|||||||
@ -37,4 +37,4 @@ spec:
|
|||||||
node.deckhouse.io/group: generic
|
node.deckhouse.io/group: generic
|
||||||
tolerations: []
|
tolerations: []
|
||||||
dataStorage:
|
dataStorage:
|
||||||
storageClass: local-path
|
storageClass: nfs01
|
||||||
|
|||||||
@ -6,6 +6,9 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
interval: 5m
|
interval: 5m
|
||||||
timeout: 10m
|
timeout: 10m
|
||||||
|
dependsOn:
|
||||||
|
- name: postgresql
|
||||||
|
namespace: zitadel
|
||||||
postRenderers:
|
postRenderers:
|
||||||
- kustomize:
|
- kustomize:
|
||||||
patches:
|
patches:
|
||||||
@ -110,6 +113,7 @@ spec:
|
|||||||
debug:
|
debug:
|
||||||
enabled: false
|
enabled: false
|
||||||
postgresqlSecret:
|
postgresqlSecret:
|
||||||
|
create: false
|
||||||
vault:
|
vault:
|
||||||
enabled: true
|
enabled: true
|
||||||
role: zitadel
|
role: zitadel
|
||||||
@ -132,7 +136,7 @@ spec:
|
|||||||
- name: ZITADEL_MACHINE_IDENTIFICATION_HOSTNAME_ENABLED
|
- name: ZITADEL_MACHINE_IDENTIFICATION_HOSTNAME_ENABLED
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: ZITADEL_DATABASE_POSTGRES_HOST
|
- name: ZITADEL_DATABASE_POSTGRES_HOST
|
||||||
value: "10.222.255.162"
|
value: "postgresql.zitadel.svc.cluster.local"
|
||||||
- name: ZITADEL_DATABASE_POSTGRES_PORT
|
- name: ZITADEL_DATABASE_POSTGRES_PORT
|
||||||
value: "5432"
|
value: "5432"
|
||||||
- name: ZITADEL_DATABASE_POSTGRES_USER_USERNAME
|
- name: ZITADEL_DATABASE_POSTGRES_USER_USERNAME
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user