50 lines
823 B
YAML
50 lines
823 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: plex
|
|
namespace: pvr
|
|
spec:
|
|
ports:
|
|
- protocol: TCP
|
|
name: web
|
|
port: 32400
|
|
---
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: plex
|
|
namespace: pvr
|
|
subsets:
|
|
- addresses:
|
|
- ip: 192.168.11.240
|
|
ports:
|
|
- port: 32400
|
|
name: web
|
|
---
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: plex
|
|
namespace: pvr
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`media.pvr.spamasaurus.com`)
|
|
kind: Rule
|
|
services:
|
|
- name: plex
|
|
port: 32400
|
|
middlewares:
|
|
- name: security-headers@file
|
|
- name: compression@file
|
|
tls:
|
|
options:
|
|
name: defaults@file
|
|
certResolver: default
|
|
domains:
|
|
- main: '*.pvr.spamasaurus.com'
|
|
sans:
|
|
- 'pvr.spamasaurus.com'
|
|
|