Add volume mounts for immich deployment
This commit is contained in:
@@ -51,6 +51,12 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 2283
|
- containerPort: 2283
|
||||||
resources: {}
|
resources: {}
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: upload
|
||||||
|
- mountPath: /etc/localtime
|
||||||
|
name: localtime
|
||||||
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: upload
|
- name: upload
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
@@ -99,6 +99,17 @@ func Deployment() apps.Deployment {
|
|||||||
Image: root.Immich.Image,
|
Image: root.Immich.Image,
|
||||||
Env: kube.NewEnvVarWithSecret(envMapping, secretMapping, Secret.Name),
|
Env: kube.NewEnvVarWithSecret(envMapping, secretMapping, Secret.Name),
|
||||||
Ports: []core.ContainerPort{{ContainerPort: root.Immich.Port}},
|
Ports: []core.ContainerPort{{ContainerPort: root.Immich.Port}},
|
||||||
|
VolumeMounts: []core.VolumeMount{
|
||||||
|
{
|
||||||
|
Name: uploadVol.Name,
|
||||||
|
MountPath: "/data",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: localtimeVol.Name,
|
||||||
|
MountPath: "/etc/localtime",
|
||||||
|
ReadOnly: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Volumes: []core.Volume{
|
Volumes: []core.Volume{
|
||||||
|
|||||||
Reference in New Issue
Block a user