uralkal: pg-tls — TLS и pg_hba аргументами postgres, writable root (п.31, INFRA-3062)
Образ contour/postgresql — официальный postgres с обёрткой contour, bitnami-переменные TLS и extended-конфиг он игнорирует: ssl, сертификат, ssl_min_protocol_version и hba_file передаются через -c; readOnlyRootFilesystem: false и пробы pg_isready как у infrastructure/postgresql/uralkal.
This commit is contained in:
parent
5e5148e951
commit
32e4bc657a
@ -48,8 +48,40 @@ spec:
|
|||||||
size: 1Gi
|
size: 1Gi
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
dedicated: generic
|
dedicated: generic
|
||||||
extendedConfiguration: |
|
containerSecurityContext:
|
||||||
ssl_min_protocol_version = 'TLSv1.2'
|
readOnlyRootFilesystem: false
|
||||||
|
args:
|
||||||
|
- postgres
|
||||||
|
- -c
|
||||||
|
- ssl=on
|
||||||
|
- -c
|
||||||
|
- ssl_cert_file=/opt/bitnami/postgresql/certs/tls.crt
|
||||||
|
- -c
|
||||||
|
- ssl_key_file=/opt/bitnami/postgresql/certs/tls.key
|
||||||
|
- -c
|
||||||
|
- ssl_min_protocol_version=TLSv1.2
|
||||||
|
- -c
|
||||||
|
- hba_file=/bitnami/postgresql/conf/pg_hba.conf
|
||||||
|
customLivenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- exec pg_isready -h 127.0.0.1 -p 5432
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 6
|
||||||
|
customReadinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- exec pg_isready -h 127.0.0.1 -p 5432
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 6
|
||||||
pgHbaConfiguration: |
|
pgHbaConfiguration: |
|
||||||
local all all scram-sha-256
|
local all all scram-sha-256
|
||||||
hostssl all all 0.0.0.0/0 scram-sha-256
|
hostssl all all 0.0.0.0/0 scram-sha-256
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user