Skip to content

Commit 0db1746

Browse files
committed
Kubernetes: Add kube dashboard manifests
Signed-off-by: NotHarshhaa <reddyharshhaa12@gmail.com>
1 parent a16bd90 commit 0db1746

File tree

3 files changed

+210
-0
lines changed

3 files changed

+210
-0
lines changed

β€Ždashboards/dashy/dashy.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
2+
apiVersion: v1
3+
kind: PersistentVolumeClaim
4+
metadata:
5+
name: dashy
6+
spec:
7+
accessModes:
8+
- ReadWriteMany
9+
resources:
10+
requests:
11+
storage: 1Gi
12+
---
13+
apiVersion: apps/v1
14+
kind: Deployment
15+
metadata:
16+
name: dashy
17+
spec:
18+
replicas: 1
19+
selector:
20+
matchLabels:
21+
app: dashy
22+
template:
23+
metadata:
24+
labels:
25+
app: dashy
26+
spec:
27+
containers:
28+
- name: dashy
29+
image: lissy93/dashy:latest
30+
ports:
31+
- containerPort: 80
32+
volumeMounts:
33+
- mountPath: /app/public/
34+
name: dashy
35+
volumes:
36+
- name: dashy
37+
persistentVolumeClaim:
38+
claimName: dashy
39+
---
40+
# A Single-use pod to create the content of /app/public in the PV
41+
apiVersion: v1
42+
kind: Pod
43+
metadata:
44+
name: dashy-seeder
45+
spec:
46+
restartPolicy: OnFailure
47+
containers:
48+
- name: dashy-seeder
49+
image: lissy93/dashy:latest
50+
command: ["cp"]
51+
args: ["-r", "/app/public/", "/mnt/"]
52+
volumeMounts:
53+
- mountPath: /mnt/public
54+
name: dashy-seeder
55+
volumes:
56+
- name: dashy-seeder
57+
persistentVolumeClaim:
58+
claimName: dashy
59+
---
60+
apiVersion: v1
61+
kind: Service
62+
metadata:
63+
name: dashy
64+
spec:
65+
ports:
66+
- port: 80
67+
nodePort: 30004
68+
selector:
69+
app: dashy
70+
type: NodePort

β€Ždashboards/heimdall/heimdall.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: heimdall
5+
spec:
6+
accessModes:
7+
- ReadWriteMany
8+
resources:
9+
requests:
10+
storage: 10Gi
11+
---
12+
apiVersion: apps/v1
13+
kind: Deployment
14+
metadata:
15+
name: heimdall
16+
spec:
17+
replicas: 1
18+
selector:
19+
matchLabels:
20+
app: heimdall
21+
template:
22+
metadata:
23+
labels:
24+
app: heimdall
25+
spec:
26+
volumes:
27+
- name: heimdall
28+
persistentVolumeClaim:
29+
claimName: heimdall
30+
containers:
31+
- name: heimdall
32+
image: lscr.io/linuxserver/heimdall:latest
33+
ports:
34+
- containerPort: 80
35+
env:
36+
- name: TZ
37+
value: Asia/Tokyo
38+
- name: PUID
39+
value: "1000"
40+
- name: PGID
41+
value: "1000"
42+
volumeMounts:
43+
- mountPath: /config
44+
name: heimdall
45+
---
46+
apiVersion: v1
47+
kind: Service
48+
metadata:
49+
name: heimdall
50+
spec:
51+
ports:
52+
- port: 80
53+
nodePort: 30002
54+
selector:
55+
app: heimdall
56+
type: NodePort

β€Ždashboards/homarr/homarr.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: homarr-configs
5+
spec:
6+
accessModes:
7+
- ReadWriteMany
8+
resources:
9+
requests:
10+
storage: 5Gi
11+
---
12+
apiVersion: v1
13+
kind: PersistentVolumeClaim
14+
metadata:
15+
name: homarr-icons
16+
spec:
17+
accessModes:
18+
- ReadWriteMany
19+
resources:
20+
requests:
21+
storage: 10Gi
22+
---
23+
apiVersion: v1
24+
kind: PersistentVolumeClaim
25+
metadata:
26+
name: homarr-data
27+
spec:
28+
accessModes:
29+
- ReadWriteOnce
30+
resources:
31+
requests:
32+
storage: 2Gi
33+
---
34+
apiVersion: apps/v1
35+
kind: Deployment
36+
metadata:
37+
name: homarr
38+
spec:
39+
replicas: 1
40+
selector:
41+
matchLabels:
42+
app: homarr
43+
template:
44+
metadata:
45+
labels:
46+
app: homarr
47+
spec:
48+
containers:
49+
- name: homarr
50+
image: ghcr.io/ajnart/homarr:0.14.4
51+
ports:
52+
- containerPort: 7575
53+
env:
54+
- name: PASSWORD
55+
value: mypassword
56+
volumeMounts:
57+
- mountPath: /data
58+
name: homarr-data
59+
- mountPath: /app/data/configs
60+
name: homarr-configs
61+
- mountPath: /app/public/icons
62+
name: homarr-icons
63+
volumes:
64+
- name: homarr-configs
65+
persistentVolumeClaim:
66+
claimName: homarr-configs
67+
- name: homarr-icons
68+
persistentVolumeClaim:
69+
claimName: homarr-icons
70+
- name: homarr-data
71+
persistentVolumeClaim:
72+
claimName: homarr-data
73+
---
74+
apiVersion: v1
75+
kind: Service
76+
metadata:
77+
name: homarr
78+
spec:
79+
ports:
80+
- port: 7575
81+
nodePort: 30008
82+
selector:
83+
app: homarr
84+
type: NodePort

0 commit comments

Comments
Β (0)