rtmp-adr/rtmp-server.yaml

46 lines
743 B
YAML
Raw Normal View History

2023-01-21 18:51:37 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: rtmp-adr-deployment
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 19:36:00 +00:00
image: git.oe74.net/adelorenzo/rtmp-adr:0.7
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