Add Kubernetes manifests for self-hosted services
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: immich-server-ingress
|
||||
namespace: immich # Ensure this matches your app's namespace
|
||||
annotations:
|
||||
# Forces Cilium to assign a unique IP from your 10.1.0.x pool
|
||||
ingress.cilium.io/loadbalancer-mode: "dedicated"
|
||||
spec:
|
||||
ingressClassName: cilium
|
||||
rules:
|
||||
- host: "photos.mariushome.lt"
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
# CHANGE THIS to your actual internal service name
|
||||
name: immich-server
|
||||
port:
|
||||
number: 2283
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: "cilium.io/v2alpha1"
|
||||
kind: CiliumL2AnnouncementPolicy
|
||||
metadata:
|
||||
name: "l2-policy"
|
||||
spec:
|
||||
externalIPs: true
|
||||
loadBalancerIPs: true
|
||||
# Optional: Limit which nodes announce the IPs
|
||||
nodeSelector:
|
||||
matchExpressions:
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: DoesNotExist
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: "cilium.io/v2"
|
||||
kind: CiliumLoadBalancerIPPool
|
||||
metadata:
|
||||
name: "lan-pool"
|
||||
spec:
|
||||
blocks:
|
||||
- start: "10.1.0.101" # Example range
|
||||
stop: "10.1.0.199"
|
||||
Reference in New Issue
Block a user