Add glance stack

This commit is contained in:
Daniel Cosme
2026-05-07 11:51:35 -04:00
parent 9ed2e10454
commit 58c733260f
11 changed files with 160 additions and 1 deletions

20
pkg/glance.go Normal file
View 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")
}

View File

@@ -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)

View File

@@ -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"