externalName doesn't work for nginx-ingress-controller 😢

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2023-02-11 15:41:57 +01:00
parent 6dcf16062a
commit d0b926e949
2 changed files with 19 additions and 2 deletions

15
jelly/endpointslice.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
name: jellyfin-1
labels:
kubernetes.io/service-name: jellyfin
addressType: IPv4
ports:
- name: ''
appProtocol: http
protocol: TCP
port: 8096
endpoints:
- addresses:
- "10.32.58.244"

View File

@ -3,5 +3,7 @@ apiVersion: v1
metadata:
name: jellyfin
spec:
type: ExternalName
externalName: remote-jelly.cluster-ingress.svc.cluster.local
ports:
- protocol: tcp
port: 8096
targetPort: 8096