File tree 1 file changed +28
-9
lines changed
database-management/pgadmin
1 file changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ apiVersion: v1
3
3
kind : PersistentVolumeClaim
4
4
metadata :
5
5
name : pgadmin
6
+ namespace : database-management
7
+ labels :
8
+ app : pgadmin
6
9
spec :
7
10
accessModes :
8
11
- ReadWriteOnce
@@ -14,6 +17,9 @@ apiVersion: apps/v1
14
17
kind : Deployment
15
18
metadata :
16
19
name : pgadmin
20
+ namespace : database-management
21
+ labels :
22
+ app : pgadmin
17
23
spec :
18
24
replicas : 1
19
25
selector :
@@ -25,20 +31,32 @@ spec:
25
31
app : pgadmin
26
32
spec :
27
33
containers :
28
- - env :
34
+ - name : pgadmin
35
+ image : dpage/pgadmin4
36
+ ports :
37
+ - containerPort : 80
38
+ env :
29
39
- name : PGADMIN_DEFAULT_EMAIL
30
40
31
41
- name : PGADMIN_DEFAULT_PASSWORD
32
42
value : keyboardcat
33
43
- name : PGADMIN_PORT
34
44
value : " 80"
35
- image : dpage/pgadmin4
36
- name : pgadmin
37
- ports :
38
- - containerPort : 80
39
45
volumeMounts :
40
46
- mountPath : /var/lib/pgadmin
41
47
name : pgadmin
48
+ readinessProbe :
49
+ httpGet :
50
+ path : /
51
+ port : 80
52
+ initialDelaySeconds : 5
53
+ periodSeconds : 10
54
+ livenessProbe :
55
+ httpGet :
56
+ path : /
57
+ port : 80
58
+ initialDelaySeconds : 15
59
+ periodSeconds : 20
42
60
volumes :
43
61
- name : pgadmin
44
62
persistentVolumeClaim :
@@ -47,13 +65,14 @@ spec:
47
65
apiVersion : v1
48
66
kind : Service
49
67
metadata :
68
+ name : pgadmin
69
+ namespace : database-management
50
70
labels :
51
71
app : pgadmin
52
- name : pgadmin
53
72
spec :
54
73
ports :
55
- - nodePort : 30165
56
- port : 80
74
+ - port : 80
75
+ targetPort : 80
57
76
selector :
58
77
app : pgadmin
59
- type : NodePort
78
+ type : ClusterIP
You can’t perform that action at this time.
0 commit comments