add pg
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-12-14 20:30:25 +10:00
parent 6a901a125d
commit be0f29cb01

View File

@ -15,18 +15,60 @@ spec:
app: pgadmin app: pgadmin
spec: spec:
containers: containers:
- name: pgadmin4 - name: pgadmin4
image: dpage/pgadmin4 image: dpage/pgadmin4
env: env:
- name: PGADMIN_DEFAULT_EMAIL - name: PGADMIN_DEFAULT_EMAIL
value: "admin@guaranteedstruggle.host" value: "admin@guaranteedstruggle.host"
- name: PGADMIN_DEFAULT_PASSWORD - name: PGADMIN_DEFAULT_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: pgadmin-secret name: pgadmin-secret
key: pgadmin-default-password key: pgadmin-default-password
- name: PGADMIN_PORT - name: PGADMIN_PORT
value: "80" value: "80"
ports:
- containerPort: 80 ports:
name: pgadminport - containerPort: 80
name: pgadminport
volumeMounts:
- mountPath: /var/lib/pgadmin
name: pgadmin
volumes:
- name: pgadmin
persistentVolumeClaim:
claimName: pgadmin-pv-claim
---
kind: PersistentVolume
apiVersion: v1
metadata:
namespace: pg
name: pgadmin-pv-volume
labels:
type: local
app: pgadmin
spec:
storageClassName: longhorn
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
hostPath:
path: "/mnt/data"
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
namespace: pg
name: pgadmin-pv-claim
labels:
app: pgadmin
spec:
storageClassName: longhorn
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi