refactoring proxy ingress to use endpointslice

This commit is contained in:
2026-01-02 16:29:49 -07:00
parent dae82f8971
commit 97ac6d224b
9 changed files with 271 additions and 92 deletions

View File

@@ -12,26 +12,46 @@ metadata:
spec:
ingressClassName: nginx
tls:
- hosts:
- photos.alexmickelson.guru
secretName: immich-tls-cert
- hosts:
- photos.alexmickelson.guru
secretName: immich-tls-cert
rules:
- host: photos.alexmickelson.guru
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: immich-service
port:
number: 2283
- host: photos.alexmickelson.guru
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: immich
port:
number: 2283
---
apiVersion: v1
kind: Service
metadata:
name: immich-service
name: immich
namespace: projects
spec:
type: ExternalName
externalName: 100.122.128.107
ports:
- port: 2283
targetPort: 2283
protocol: TCP
---
apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
name: immich
namespace: projects
labels:
kubernetes.io/service-name: immich
addressType: IPv4
ports:
- name: http
port: 2283
protocol: TCP
endpoints:
- addresses:
- 100.122.128.107
conditions:
ready: true