File tree 1 file changed +39
-2
lines changed
1 file changed +39
-2
lines changed Original file line number Diff line number Diff line change 1
-
2
1
apiVersion : v1
3
2
kind : PersistentVolumeClaim
4
3
metadata :
5
4
name : dashy
5
+ namespace : dashy-namespace
6
+ labels :
7
+ app : dashy
6
8
spec :
7
9
accessModes :
8
10
- ReadWriteMany
@@ -14,6 +16,9 @@ apiVersion: apps/v1
14
16
kind : Deployment
15
17
metadata :
16
18
name : dashy
19
+ namespace : dashy-namespace
20
+ labels :
21
+ app : dashy
17
22
spec :
18
23
replicas : 1
19
24
selector :
@@ -32,16 +37,37 @@ spec:
32
37
volumeMounts :
33
38
- mountPath : /app/public/
34
39
name : dashy
40
+ resources :
41
+ requests :
42
+ memory : " 256Mi"
43
+ cpu : " 250m"
44
+ limits :
45
+ memory : " 512Mi"
46
+ cpu : " 500m"
47
+ readinessProbe :
48
+ httpGet :
49
+ path : /
50
+ port : 80
51
+ initialDelaySeconds : 5
52
+ periodSeconds : 10
53
+ livenessProbe :
54
+ httpGet :
55
+ path : /
56
+ port : 80
57
+ initialDelaySeconds : 10
58
+ periodSeconds : 15
35
59
volumes :
36
60
- name : dashy
37
61
persistentVolumeClaim :
38
62
claimName : dashy
39
63
---
40
- # A Single-use pod to create the content of /app/public in the PV
41
64
apiVersion : v1
42
65
kind : Pod
43
66
metadata :
44
67
name : dashy-seeder
68
+ namespace : dashy-namespace
69
+ labels :
70
+ app : dashy
45
71
spec :
46
72
restartPolicy : OnFailure
47
73
containers :
52
78
volumeMounts :
53
79
- mountPath : /mnt/public
54
80
name : dashy-seeder
81
+ resources :
82
+ requests :
83
+ memory : " 128Mi"
84
+ cpu : " 100m"
85
+ limits :
86
+ memory : " 256Mi"
87
+ cpu : " 200m"
55
88
volumes :
56
89
- name : dashy-seeder
57
90
persistentVolumeClaim :
@@ -61,10 +94,14 @@ apiVersion: v1
61
94
kind : Service
62
95
metadata :
63
96
name : dashy
97
+ namespace : dashy-namespace
98
+ labels :
99
+ app : dashy
64
100
spec :
65
101
ports :
66
102
- port : 80
67
103
nodePort : 30004
104
+ targetPort : 80
68
105
selector :
69
106
app : dashy
70
107
type : NodePort
You can’t perform that action at this time.
0 commit comments