File tree 1 file changed +48
-5
lines changed
1 file changed +48
-5
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 : homarr-configs
5
+ namespace : homarr
6
+ labels :
7
+ app : homarr
5
8
spec :
6
9
accessModes :
7
10
- ReadWriteMany
@@ -13,6 +16,9 @@ apiVersion: v1
13
16
kind : PersistentVolumeClaim
14
17
metadata :
15
18
name : homarr-icons
19
+ namespace : homarr
20
+ labels :
21
+ app : homarr
16
22
spec :
17
23
accessModes :
18
24
- ReadWriteMany
@@ -24,6 +30,9 @@ apiVersion: v1
24
30
kind : PersistentVolumeClaim
25
31
metadata :
26
32
name : homarr-data
33
+ namespace : homarr
34
+ labels :
35
+ app : homarr
27
36
spec :
28
37
accessModes :
29
38
- ReadWriteOnce
@@ -35,6 +44,9 @@ apiVersion: apps/v1
35
44
kind : Deployment
36
45
metadata :
37
46
name : homarr
47
+ namespace : homarr
48
+ labels :
49
+ app : homarr
38
50
spec :
39
51
replicas : 1
40
52
selector :
@@ -50,16 +62,35 @@ spec:
50
62
image : ghcr.io/ajnart/homarr:0.14.4
51
63
ports :
52
64
- containerPort : 7575
53
- env :
54
- - name : PASSWORD
55
- value : mypassword
65
+ envFrom :
66
+ - secretRef :
67
+ name : homarr-secret
68
+ resources :
69
+ requests :
70
+ memory : " 256Mi"
71
+ cpu : " 250m"
72
+ limits :
73
+ memory : " 512Mi"
74
+ cpu : " 500m"
56
75
volumeMounts :
57
76
- mountPath : /data
58
77
name : homarr-data
59
78
- mountPath : /app/data/configs
60
79
name : homarr-configs
61
80
- mountPath : /app/public/icons
62
81
name : homarr-icons
82
+ readinessProbe :
83
+ httpGet :
84
+ path : /
85
+ port : 7575
86
+ initialDelaySeconds : 5
87
+ periodSeconds : 10
88
+ livenessProbe :
89
+ httpGet :
90
+ path : /
91
+ port : 7575
92
+ initialDelaySeconds : 10
93
+ periodSeconds : 20
63
94
volumes :
64
95
- name : homarr-configs
65
96
persistentVolumeClaim :
@@ -75,10 +106,22 @@ apiVersion: v1
75
106
kind : Service
76
107
metadata :
77
108
name : homarr
109
+ namespace : homarr
110
+ labels :
111
+ app : homarr
78
112
spec :
79
113
ports :
80
114
- port : 7575
81
- nodePort : 30008
115
+ targetPort : 7575
82
116
selector :
83
117
app : homarr
84
- type : NodePort
118
+ type : ClusterIP
119
+ ---
120
+ apiVersion : v1
121
+ kind : Secret
122
+ metadata :
123
+ name : homarr-secret
124
+ namespace : homarr
125
+ type : Opaque
126
+ data :
127
+ PASSWORD : bXlwYXNzd29yZA== # Base64 encoded value of "mypassword"
You can’t perform that action at this time.
0 commit comments