Add nodePort for immich
This commit is contained in:
@@ -7,9 +7,11 @@ metadata:
|
|||||||
namespace: immich
|
namespace: immich
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 2283
|
- nodePort: 30011
|
||||||
|
port: 2283
|
||||||
targetPort: 0
|
targetPort: 0
|
||||||
selector:
|
selector:
|
||||||
app: immich
|
app: immich
|
||||||
|
type: NodePort
|
||||||
status:
|
status:
|
||||||
loadBalancer: {}
|
loadBalancer: {}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ var redis_srv core.Service
|
|||||||
func init() {
|
func init() {
|
||||||
meta = kube.NewMetadata(root.Immich.Name, Namespace)
|
meta = kube.NewMetadata(root.Immich.Name, Namespace)
|
||||||
srv = meta.Service(root.Immich.Port)
|
srv = meta.Service(root.Immich.Port)
|
||||||
|
srv.Spec.Type = core.ServiceTypeNodePort
|
||||||
|
srv.Spec.Ports[0].NodePort = int32(root.Immich.Public.NodePort)
|
||||||
|
|
||||||
uploads_pvc = meta.PVC()
|
uploads_pvc = meta.PVC()
|
||||||
uploads_pvc.Spec.StorageClassName = new(root.TrueNASSTorageClassNFS)
|
uploads_pvc.Spec.StorageClassName = new(root.TrueNASSTorageClassNFS)
|
||||||
uploads_pvc.Spec.AccessModes = []core.PersistentVolumeAccessMode{core.ReadWriteMany}
|
uploads_pvc.Spec.AccessModes = []core.PersistentVolumeAccessMode{core.ReadWriteMany}
|
||||||
|
|||||||
@@ -37,7 +37,10 @@ var Immich = Service{
|
|||||||
Name: "immich",
|
Name: "immich",
|
||||||
Image: "ghcr.io/immich-app/immich-server:v2.7.5",
|
Image: "ghcr.io/immich-app/immich-server:v2.7.5",
|
||||||
Port: 2283, // Server Port
|
Port: 2283, // Server Port
|
||||||
// PublicURL: "https://photos.danicos.me",
|
Public: &Public{
|
||||||
|
URL: "https://photos.danicos.me",
|
||||||
|
NodePort: 30011,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
Reference in New Issue
Block a user