Files
homelab/pkg/root/services.go
T

59 lines
1.3 KiB
Go
Raw Normal View History

2026-04-17 20:49:37 -04:00
package root
2026-04-30 19:29:26 -04:00
import (
2026-05-01 13:38:11 -04:00
"fmt"
2026-04-30 19:29:26 -04:00
"danicos.dev/daniel/go-kube/pkg/kube"
)
2026-04-17 20:49:37 -04:00
type Service struct {
2026-04-18 12:10:01 -04:00
Name string
Image string
Port int32
SecurityContextID int64
2026-04-30 18:05:24 -04:00
Public *Public
Postgres *Postgres
2026-04-17 20:49:37 -04:00
}
2026-04-30 18:05:24 -04:00
type Public struct {
URL string
NodePort int32
}
type Postgres struct{}
2026-04-17 20:49:37 -04:00
var Linkding = Service{
2026-04-30 18:25:06 -04:00
Name: "linking",
2026-04-18 19:02:37 -04:00
Image: "sissbruecker/linkding:1.45.0",
2026-04-18 12:10:01 -04:00
Port: 9090,
SecurityContextID: 33, // www-data user, group and FS ID
2026-04-30 18:05:24 -04:00
Public: &Public{
URL: "https://link.danicos.me",
NodePort: 30010,
},
}
var Immich = Service{
Name: "immich",
2026-05-01 14:11:41 -04:00
Image: "ghcr.io/immich-app/immich-server:v2.6.0:-release}",
Port: 2283,
2026-04-30 18:05:24 -04:00
// PublicURL: "https://photos.danicos.me",
2026-04-17 20:49:37 -04:00
}
2026-04-21 13:06:42 -04:00
2026-04-29 19:15:55 -04:00
var (
2026-05-01 13:38:11 -04:00
Longhorn = "longhorn"
Monitoring = "monitoring"
CloudNativePG = "cnpg"
PGClusterNamespace = kube.Namespace(CloudNativePG + "-cluster")
PG_CLUSTER_HOSTNAME = fmt.Sprintf("%s-rw.%s.svc.cluster.local", PGClusterNamespace.Name, PGClusterNamespace.Name)
PG_CLUSTER_PORT = 5432
2026-04-30 10:41:19 -04:00
)
var (
TrueNAS_CSI = "truenas-csi"
TrueNASURL = "apex-truenas.orca-uaru.ts.net"
TrueNASProvisioner = "cis.truenas.io"
TrueNASSTorageClassNFS = "truenas-nfs"
TrueNASSTorageClass_iSCSI = "truenas-iscsi"
2026-04-29 19:15:55 -04:00
)