49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
# Watch Party — external service on Mac Mini
|
|
# Apply: kubectl apply -f manifests/watch-party-ingress.yaml
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: watch-party-mac-mini
|
|
namespace: default
|
|
subsets:
|
|
- addresses:
|
|
- ip: 192.168.7.96
|
|
ports:
|
|
- port: 3000
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: watch-party-mac-mini
|
|
namespace: default
|
|
spec:
|
|
ports:
|
|
- port: 3000
|
|
targetPort: 3000
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: watch-party
|
|
namespace: default
|
|
annotations:
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
spec:
|
|
ingressClassName: traefik
|
|
tls:
|
|
- secretName: watch-party-tls
|
|
hosts:
|
|
- watch-party.nik4nao.com
|
|
rules:
|
|
- host: watch-party.nik4nao.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: watch-party-mac-mini
|
|
port:
|
|
number: 3000 |