Add glance stack
This commit is contained in:
20
pkg/glance.go
Normal file
20
pkg/glance.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package glance
|
||||
|
||||
import (
|
||||
"danicos.dev/daniel/go-kube/pkg/kube"
|
||||
"danicos.dev/daniel/go-kube/pkg/stack"
|
||||
"danicos.dev/daniel/homelab/pkg/root"
|
||||
)
|
||||
|
||||
var meta kube.Metadata
|
||||
var Namespace = kube.Namespace(root.Glance.Name)
|
||||
|
||||
func Stack() stack.Stack {
|
||||
kz := kube.NewKuztomizedStack(
|
||||
meta,
|
||||
map[string]any{
|
||||
"namespace": Namespace,
|
||||
},
|
||||
)
|
||||
return kz.Stack("glance")
|
||||
}
|
||||
@@ -83,7 +83,6 @@ func Stack() stack.Stack {
|
||||
|
||||
func MachineLearning() apps.Deployment {
|
||||
envMapping := map[string]string{
|
||||
// "REDIS_PORT": fmt.Sprintf("%d", RedisPort),
|
||||
"IMMICH_PORT": fmt.Sprintf("%d", MachineLearningPort),
|
||||
}
|
||||
cacheVol := kube.NewVolumeFrom(kube.VolumeSourcePVC, "cache", machine_learning_pvc.Name)
|
||||
|
||||
@@ -43,6 +43,16 @@ var Immich = Service{
|
||||
},
|
||||
}
|
||||
|
||||
var Glance = Service{
|
||||
Name: "glance",
|
||||
Image: "",
|
||||
Port: 0, // Server Port
|
||||
// Public: &Public{
|
||||
// URL: "https://photos.danicos.me",
|
||||
// NodePort: 30011,
|
||||
// },
|
||||
}
|
||||
|
||||
var (
|
||||
Longhorn = "longhorn"
|
||||
Monitoring = "monitoring"
|
||||
|
||||
Reference in New Issue
Block a user