add pg
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simple_Not 2023-12-14 20:50:06 +10:00
parent 77f6057d9d
commit ef1a857abe
2 changed files with 26 additions and 2 deletions

View File

@ -37,4 +37,24 @@ metadata:
namespace: pg namespace: pg
type: Opaque type: Opaque
data: data:
pgadmin-default-password: YWRtb24= 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"
}
}
}

View File

@ -42,7 +42,11 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /var/lib/pgadmin - mountPath: /var/lib/pgadmin
name: pgadmin name: pgadmin
- name: pgadmin-config
mountPath: /pgadmin4/servers.json
subPath: servers.json
readOnly: true
volumes: volumes:
- name: pgadmin - name: pgadmin