diff --git a/manifests/01-namespaces/pg.yaml b/manifests/01-namespaces/pg.yaml index 3b26f03..f44ecc4 100644 --- a/manifests/01-namespaces/pg.yaml +++ b/manifests/01-namespaces/pg.yaml @@ -37,4 +37,24 @@ metadata: namespace: pg type: Opaque data: - pgadmin-default-password: YWRtb24= \ No newline at end of file + pgadmin-default-password: YWRtb24= +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: pgadmin-config + namespace: pg +data: + servers.json: | + { + "Servers": { + "1": { + "Name": "pg-k8s", + "Group": "Servers", + "Port": 15432, + "Username": "admin", + "Host": "pg.guaranteedstruggle.host", + "MaintenanceDB": "mainbase" + } + } + } \ No newline at end of file diff --git a/manifests/02-deployments/deployment-pgadmin.yaml b/manifests/02-deployments/deployment-pgadmin.yaml index f426086..c3876d1 100644 --- a/manifests/02-deployments/deployment-pgadmin.yaml +++ b/manifests/02-deployments/deployment-pgadmin.yaml @@ -42,7 +42,11 @@ spec: volumeMounts: - mountPath: /var/lib/pgadmin - name: pgadmin + name: pgadmin + - name: pgadmin-config + mountPath: /pgadmin4/servers.json + subPath: servers.json + readOnly: true volumes: - name: pgadmin