Skip to content

Commit 0bea466

Browse files
committed
Kubernetes: Add namespace and labels to heimdall configuration, enhance resource management, and implement readiness and liveness probes
Signed-off-by: NotHarshhaa <[email protected]>
1 parent 4217212 commit 0bea466

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Diff for: dashboards/heimdall/heimdall.yml

+28
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ apiVersion: v1
22
kind: PersistentVolumeClaim
33
metadata:
44
name: heimdall
5+
namespace: heimdall-namespace # Added namespace
6+
labels:
7+
app: heimdall # Added label for consistency
58
spec:
69
accessModes:
710
- ReadWriteMany
@@ -13,6 +16,9 @@ apiVersion: apps/v1
1316
kind: Deployment
1417
metadata:
1518
name: heimdall
19+
namespace: heimdall-namespace # Added namespace
20+
labels:
21+
app: heimdall # Added label for consistency
1622
spec:
1723
replicas: 1
1824
selector:
@@ -42,11 +48,33 @@ spec:
4248
volumeMounts:
4349
- mountPath: /config
4450
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
4570
---
4671
apiVersion: v1
4772
kind: Service
4873
metadata:
4974
name: heimdall
75+
namespace: heimdall-namespace # Added namespace
76+
labels:
77+
app: heimdall # Added label for consistency
5078
spec:
5179
ports:
5280
- port: 80

0 commit comments

Comments
 (0)