-
Notifications
You must be signed in to change notification settings - Fork 0
/
pgadmin-deployment.yaml
73 lines (73 loc) · 1.75 KB
/
pgadmin-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "3"
generation: 3
labels:
app: pgadmin
release: pgadmin
name: pgadmin
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: pgadmin
release: pgadmin
template:
metadata:
creationTimestamp: null
labels:
app: pgadmin
release: pgadmin
spec:
containers:
- env:
- name: PGADMIN_DEFAULT_EMAIL
value: [email protected]
- name: PGADMIN_DEFAULT_PASSWORD
valueFrom:
secretKeyRef:
key: pgadmin-password
name: pgadmin-password
- name: PGADMIN_PORT
value: "80"
image: dpage/pgadmin4
imagePullPolicy: IfNotPresent
name: pgadmin
ports:
- containerPort: 80
name: http
protocol: TCP
- containerPort: 443
name: https
protocol: TCP
volumeMounts:
- mountPath: /var/lib/pgadmin
name: pgadmin-data
dnsPolicy: ClusterFirst
initContainers:
- command:
- sh
- -c
- chmod -R 777 /var/lib/pgadmin
- chgrp 1000 /var/lib/pgadmin
image: busybox:1.29.2
imagePullPolicy: IfNotPresent
name: set-dir-permission
resources: {}
securityContext:
privileged: true
volumeMounts:
- mountPath: /var/lib/pgadmin
name: pgadmin-data
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
volumes:
- name: pgadmin-data
persistentVolumeClaim:
claimName: pgadmin