Add 'rtmp-server.yaml'

This commit is contained in:
Adolfo Delorenzo 2023-01-21 18:49:04 +00:00
parent 394cc5f1e5
commit 2770d5c57f

45
rtmp-server.yaml Normal file
View File

@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 2
strategy:
type: Recreate
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
env: prod
spec:
containers:
- name: my-deployment-container
image: git.oe74.net/adelorenzo/rtmp-adr:0.6
---
apiVersion: v1
kind: Service
metadata:
name: example-prod
spec:
selector:
app: my-app
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
# - protocol: TCP
# port: 1935
# targetPort: 1935
# nodePort: 31935