Add immich port to machine learning
This commit is contained in:
@@ -16,7 +16,10 @@ spec:
|
||||
app: immich-machine-learning
|
||||
spec:
|
||||
containers:
|
||||
- image: ghcr.io/immich-app/immich-machine-learning:v2.7.5
|
||||
- env:
|
||||
- name: IMMICH_PORT
|
||||
value: "2283"
|
||||
image: ghcr.io/immich-app/immich-machine-learning:v2.7.5
|
||||
name: immich-machine-learning
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
|
||||
@@ -82,6 +82,10 @@ func Stack() stack.Stack {
|
||||
}
|
||||
|
||||
func MachineLearning() apps.Deployment {
|
||||
envMapping := map[string]string{
|
||||
// "REDIS_PORT": fmt.Sprintf("%d", RedisPort),
|
||||
"IMMICH_PORT": fmt.Sprintf("%d", root.Immich.Port),
|
||||
}
|
||||
cacheVol := kube.NewVolumeFrom(kube.VolumeSourcePVC, "cache", machine_learning_pvc.Name)
|
||||
podSpec := core.PodSpec{
|
||||
Containers: []core.Container{
|
||||
@@ -92,6 +96,7 @@ func MachineLearning() apps.Deployment {
|
||||
Name: cacheVol.Name,
|
||||
MountPath: "/cache",
|
||||
}},
|
||||
Env: kube.NewEnvVar(envMapping),
|
||||
},
|
||||
},
|
||||
Volumes: []core.Volume{cacheVol},
|
||||
|
||||
Reference in New Issue
Block a user