This commit is contained in:
parent
6a901a125d
commit
be0f29cb01
@ -27,6 +27,48 @@ spec:
|
|||||||
key: pgadmin-default-password
|
key: pgadmin-default-password
|
||||||
- name: PGADMIN_PORT
|
- name: PGADMIN_PORT
|
||||||
value: "80"
|
value: "80"
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: pgadminport
|
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
|
Loading…
Reference in New Issue
Block a user