File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ apiVersion: v1
2
2
kind : PersistentVolumeClaim
3
3
metadata :
4
4
name : heimdall
5
+ namespace : heimdall-namespace # Added namespace
6
+ labels :
7
+ app : heimdall # Added label for consistency
5
8
spec :
6
9
accessModes :
7
10
- ReadWriteMany
@@ -13,6 +16,9 @@ apiVersion: apps/v1
13
16
kind : Deployment
14
17
metadata :
15
18
name : heimdall
19
+ namespace : heimdall-namespace # Added namespace
20
+ labels :
21
+ app : heimdall # Added label for consistency
16
22
spec :
17
23
replicas : 1
18
24
selector :
@@ -42,11 +48,33 @@ spec:
42
48
volumeMounts :
43
49
- mountPath : /config
44
50
name : heimdall
51
+ resources : # Added resource limits and requests
52
+ limits :
53
+ memory : " 512Mi"
54
+ cpu : " 500m"
55
+ requests :
56
+ memory : " 256Mi"
57
+ cpu : " 250m"
58
+ readinessProbe : # Added readiness probe
59
+ httpGet :
60
+ path : /
61
+ port : 80
62
+ initialDelaySeconds : 5
63
+ periodSeconds : 10
64
+ livenessProbe : # Added liveness probe
65
+ httpGet :
66
+ path : /
67
+ port : 80
68
+ initialDelaySeconds : 15
69
+ periodSeconds : 20
45
70
---
46
71
apiVersion : v1
47
72
kind : Service
48
73
metadata :
49
74
name : heimdall
75
+ namespace : heimdall-namespace # Added namespace
76
+ labels :
77
+ app : heimdall # Added label for consistency
50
78
spec :
51
79
ports :
52
80
- port : 80
You can’t perform that action at this time.
0 commit comments