Skip to content

Commit f06a561

Browse files
committedApr 12, 2025
Kubernetes: Add labels to adminer resources, specify image version, and enhance resource management with probes
Signed-off-by: NotHarshhaa <[email protected]>
1 parent 84798e4 commit f06a561

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed
 

‎database-management/adminer/adminer.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: adminer
5+
labels:
6+
app: adminer
57
spec:
68
replicas: 1
79
selector:
@@ -14,18 +16,40 @@ spec:
1416
spec:
1517
containers:
1618
- name: adminer
17-
image: adminer
19+
image: adminer:4.8.1 # Specify a version tag
1820
ports:
1921
- containerPort: 8080
22+
resources:
23+
requests:
24+
memory: "128Mi"
25+
cpu: "250m"
26+
limits:
27+
memory: "256Mi"
28+
cpu: "500m"
29+
livenessProbe:
30+
httpGet:
31+
path: /
32+
port: 8080
33+
initialDelaySeconds: 5
34+
periodSeconds: 10
35+
readinessProbe:
36+
httpGet:
37+
path: /
38+
port: 8080
39+
initialDelaySeconds: 5
40+
periodSeconds: 10
2041

2142
---
2243
apiVersion: v1
2344
kind: Service
2445
metadata:
2546
name: adminer
47+
labels:
48+
app: adminer
2649
spec:
2750
ports:
2851
- port: 8080
52+
targetPort: 8080
2953
nodePort: 30433
3054
selector:
3155
app: adminer

0 commit comments

Comments
 (0)
Please sign in to comment.