File tree Expand file tree Collapse file tree 2 files changed +63
-0
lines changed
k8s/magiclove/immich/server Expand file tree Collapse file tree 2 files changed +63
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,24 @@ import (
23
23
volumes : [{
24
24
name : " library "
25
25
persistentVolumeClaim : claimName : " \(#Name )-library "
26
+ }, {
27
+ name : " external-library "
28
+ persistentVolumeClaim : claimName : " \(#Name )-external-library "
29
+ }, {
30
+ name : " smb-var-cache "
31
+ emptyDir : {}
32
+ }, {
33
+ name : " smb-var-lib "
34
+ emptyDir : {}
35
+ }, {
36
+ name : " smb-var-lib-private "
37
+ emptyDir : {}
38
+ }, {
39
+ name : " smb-var-log "
40
+ emptyDir : {}
41
+ }, {
42
+ name : " smb-var-run "
43
+ emptyDir : {}
26
44
}]
27
45
containers : [{
28
46
name : " server "
@@ -69,6 +87,46 @@ import (
69
87
volumeMounts : [{
70
88
name : " library "
71
89
mountPath : " /usr/src/app/upload "
90
+ }, {
91
+ name : " external-library "
92
+ readOnly : true
93
+ mountPath : " /external-library "
94
+ }]
95
+ imagePullPolicy : v1 .#PullIfNotPresent
96
+ securityContext : {
97
+ capabilities : drop : [" ALL " ]
98
+ readOnlyRootFilesystem : true
99
+ allowPrivilegeEscalation : false
100
+ }
101
+ }, {
102
+ name : " samba "
103
+ image : " ghcr.io/uhthomas/uhthomas/samba:6f48fe9eef20bc6966f2694e89d351c4727bfcd1 "
104
+ ports : [{
105
+ name : " smb "
106
+ containerPort : 445
107
+ }]
108
+ resources : limits : {
109
+ (v1 .#ResourceCPU ): " 1 "
110
+ (v1 .#ResourceMemory ): " 1Gi "
111
+ }
112
+ volumeMounts : [{
113
+ name : " smb-var-cache "
114
+ mountPath : " /var/cache/samba "
115
+ }, {
116
+ name : " smb-var-lib "
117
+ mountPath : " /var/lib/samba "
118
+ }, {
119
+ name : " smb-var-lib-private "
120
+ mountPath : " /var/lib/samba/private "
121
+ }, {
122
+ name : " smb-var-log "
123
+ mountPath : " /var/log/samba "
124
+ }, {
125
+ name : " smb-var-run "
126
+ mountPath : " /var/run/samba "
127
+ }, {
128
+ name : " external-library "
129
+ mountPath : " /data "
72
130
}]
73
131
imagePullPolicy : v1 .#PullIfNotPresent
74
132
securityContext : {
Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ import "k8s.io/api/core/v1"
21
21
name : " http-metrics "
22
22
port : 8081
23
23
targetPort : " http-metrics "
24
+ }, {
25
+ name : " smb "
26
+ port : 445
27
+ targetPort : " smb "
24
28
}]
25
29
selector : " app.kubernetes.io/name " : #Name
30
+ type : v1 .#ServiceTypeLoadBalancer
26
31
}
27
32
}]
You can’t perform that action at this time.
0 commit comments