refactoring proxy ingress to use endpointslice
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user