2026-05-02 23:02:39 +00:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
|
|
|
kind: HelmRelease
|
|
|
|
|
metadata:
|
|
|
|
|
name: pgadmin4
|
|
|
|
|
namespace: pgadmin
|
|
|
|
|
spec:
|
|
|
|
|
interval: 5m
|
|
|
|
|
chart:
|
|
|
|
|
spec:
|
|
|
|
|
chart: pgadmin4
|
|
|
|
|
version: "*"
|
|
|
|
|
sourceRef:
|
|
|
|
|
kind: HelmRepository
|
2026-05-02 23:44:06 +00:00
|
|
|
name: pgadmin4
|
2026-05-02 23:02:39 +00:00
|
|
|
namespace: flux-system
|
|
|
|
|
install:
|
|
|
|
|
createNamespace: true
|
2026-05-02 23:44:06 +00:00
|
|
|
values:
|
|
|
|
|
existingSecret: pgadmin-credentials
|
|
|
|
|
secretKeys:
|
|
|
|
|
pgadminPasswordKey: password
|
|
|
|
|
env:
|
|
|
|
|
email: admin@jpcit.co.za
|
|
|
|
|
extraSecretMounts:
|
|
|
|
|
- name: pgadmin-credentials
|
|
|
|
|
secret: pgadmin-credentials
|
|
|
|
|
subPath: password
|
|
|
|
|
mountPath: /var/lib/pgadmin/storage/pgadmin/pg-cluster-password
|
|
|
|
|
readOnly: true
|
|
|
|
|
extraInitContainers: |
|
|
|
|
|
- name: add-folder-for-pgpass
|
|
|
|
|
image: "dpage/pgadmin4:9.13"
|
|
|
|
|
command: ["/bin/mkdir", "-p", "/var/lib/pgadmin/storage/pgadmin"]
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: pgadmin-data
|
|
|
|
|
mountPath: /var/lib/pgadmin
|
|
|
|
|
securityContext:
|
|
|
|
|
runAsUser: 5050
|
|
|
|
|
serverDefinitions:
|
|
|
|
|
enabled: true
|
|
|
|
|
resourceType: ConfigMap
|
|
|
|
|
servers:
|
2026-05-02 23:45:38 +00:00
|
|
|
"1":
|
2026-05-02 23:44:06 +00:00
|
|
|
Name: pg-cluster
|
|
|
|
|
Group: PostgreSQL
|
|
|
|
|
Host: pg-cluster-rw.pg-databases.svc.cluster.local
|
|
|
|
|
Port: 5432
|
|
|
|
|
Username: postgres
|
|
|
|
|
MaintenanceDB: postgres
|
|
|
|
|
PasswordExecCommand: cat /var/lib/pgadmin/storage/pgadmin/pg-cluster-password
|
|
|
|
|
ConnectionParameters:
|
|
|
|
|
sslmode: prefer
|
|
|
|
|
connect_timeout: 10
|
|
|
|
|
ingress:
|
|
|
|
|
enabled: true
|
|
|
|
|
ingressClassName: traefik
|
|
|
|
|
hosts:
|
|
|
|
|
- host: pgadmin.jpcit.co.za
|
|
|
|
|
paths:
|
|
|
|
|
- path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
tls:
|
|
|
|
|
- secretName: wildcard-jpcit-coza-tls
|
|
|
|
|
hosts:
|
|
|
|
|
- pgadmin.jpcit.co.za
|