fix(postgresql): fix crash loop

This commit is contained in:
SeanOMik 2023-10-22 12:25:20 -04:00
parent 82cfa8f79e
commit 284ff31b7d
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
4 changed files with 32 additions and 5 deletions

View File

@ -36,6 +36,26 @@ spec:
enabled: true enabled: true
runAsUser: 10000 runAsUser: 10000
extendedConfiguration: |-
huge_pages = off
extraVolumeMounts:
- name: pg-sample-config
mountPath: /opt/bitnami/postgresql/share/postgresql.conf.sample
subPath: postgresql.conf.sample
extraVolumes:
- configMap:
name: pg-sample-config
name: pg-sample-config
extraDeploy:
- apiVersion: v1
kind: ConfigMap
metadata:
name: pg-sample-config
data:
postgresql.conf.sample: |-
huge_pages = off
readReplicas: readReplicas:
containerSecurityContext: containerSecurityContext:
enabled: true enabled: true

View File

@ -8,7 +8,7 @@ spec:
chart: chart:
spec: spec:
chart: pgadmin4 chart: pgadmin4
version: 1.14.x version: "1.18.2"
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: runix-charts name: runix-charts
@ -20,7 +20,7 @@ spec:
cert-manager.io/cluster-issuer: letsencrypt-production cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts: hosts:
- host: &host pgadm.database.${SECRET_DOMAIN} - host: &host pgadm.${SECRET_NEW_DOMAIN}
paths: paths:
- path: "/" - path: "/"
pathType: Prefix pathType: Prefix
@ -38,5 +38,11 @@ spec:
# enabled: true # enabled: true
# allowPrivilegeEscalation: false # allowPrivilegeEscalation: false
# envVarsFromConfigMaps:
# - pgadmin4-secret
persistentVolume:
enabled: false
volumePermissions: volumePermissions:
enabled: true enabled: true

View File

@ -1,5 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./pgadmin4.sops.yaml
- ./helm-repository.yaml - ./helm-repository.yaml
- ./helm-release.yaml - ./helm-release.yaml

View File

@ -13,8 +13,8 @@ sops:
azure_kv: [] azure_kv: []
hc_vault: [] hc_vault: []
age: [] age: []
lastmodified: "2023-04-07T01:57:23Z" lastmodified: "2023-10-22T16:25:15Z"
mac: ENC[AES256_GCM,data:wvjHgGOMyuVpy4klW5/aO434NKABQJc0907BIwLOXMxSOuIsedAeRhCWdi70IJfv5m8gIcRCb/jWVtDgQePd6CALglH72VlA3NiZI5EQrdBLQUmpGSglLNScrLDOjqNrXG/UgmikATskO5R0vl/203jt1S4OupuEHiPqPRHSSdc=,iv:qHHpufOzzjk8NCuldShenJbC1BlzhMpy4Tz2wWBolvw=,tag:HpoB7PM1gZfv6qfun7ucRw==,type:str] mac: ENC[AES256_GCM,data:uWVPfKwPpR212js7f2RnCzEsMnxk2JpGPcf2L5i4gJCddJCrRJkdhjWGyVVpp/ociP3JLRTI95+WSEUH0KkPZpY1ptQevCVsUemRytOCtBlR0yR4qsBwEisSu8m4B5dbAYsqlXAndrBNL2WGB7uBv+ILgNxkhlN58unseSWJBDM=,iv:e7QyZSlhpyQ+A8OmV4p1848itIUxyam6CJOI9/N7DDY=,tag:N28mfrAjUTTYkly1hu0OhA==,type:str]
pgp: pgp:
- created_at: "2023-06-19T18:35:15Z" - created_at: "2023-06-19T18:35:15Z"
enc: | enc: |
@ -59,4 +59,4 @@ sops:
-----END PGP MESSAGE----- -----END PGP MESSAGE-----
fp: 687802D4DFD8AA82EA55666CF7DADAC782D7663D fp: 687802D4DFD8AA82EA55666CF7DADAC782D7663D
encrypted_regex: ^(data|stringData)$ encrypted_regex: ^(data|stringData)$
version: 3.7.3 version: 3.8.0