apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
app.kubernetes.io: pgadmin
name: pgadmin
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app.kubernetes.io: pgadmin
name: pgadmin
spec:
ports:
- name: “5050”
port: 5050
targetPort: 80
selector:
app.kubernetes.io: pgadmin
status:
loadBalancer: {}
apiVersion: apps/v1
kind: Deployment
metadata:
name: pgadmin
creationTimestamp: null
spec:
selector:
matchLabels:
app.kubernetes.io: pgadmin
replicas: 1
template:
metadata:
labels:
app.kubernetes.io: pgadmin
spec:
containers:
- name: pgadmin
image: dpage/pgadmin4
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /healthcheck
port: 5050:80
volumeMounts:
- mountPath: /var/lib/pgadmin
name: pgadmin
restartPolicy: Always
volumes:
- name: pgadmin
persistentVolumeClaim:
claimName: pgadmin
initialDelaySeconds: 30
timeoutSeconds: 1
status: {}