rtmp-adr/rtmp-server.yaml

46 lines
732 B
YAML
Raw Normal View History

2023-01-21 18:51:37 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
2023-01-21 23:13:19 +00:00
name: rtmp-adr
2023-01-21 18:51:37 +00:00
spec:
replicas: 1
strategy:
type: Recreate
2023-01-21 18:49:04 +00:00
selector:
matchLabels:
2023-01-21 18:51:37 +00:00
app: rtmp-server
template:
metadata:
labels:
app: rtmp-server
env: prod
spec:
containers:
- name: rtmp-adr-deployment-container
2023-01-21 23:13:19 +00:00
image: git.oe74.net/adelorenzo/rtmp-adr:0.8
2023-01-21 18:49:04 +00:00
---
apiVersion: v1
kind: Service
metadata:
2023-01-21 18:51:37 +00:00
name: rtmp-adr-svc
2023-01-21 18:49:04 +00:00
spec:
selector:
2023-01-21 18:51:37 +00:00
app: rtmp-server
2023-01-21 18:49:04 +00:00
env: prod
type: NodePort
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
nodePort: 30080
- name: hls
protocol: TCP
port: 8080
targetPort: 8080
nodePort: 31080
2023-01-21 19:02:34 +00:00
- name: rtmp
protocol: TCP
2023-01-21 18:51:37 +00:00
port: 1935
targetPort: 1935
nodePort: 31935