From 2770d5c57f7a16d4463a55eeb4a8734476633caf Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Sat, 21 Jan 2023 18:49:04 +0000 Subject: [PATCH] Add 'rtmp-server.yaml' --- rtmp-server.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 rtmp-server.yaml diff --git a/rtmp-server.yaml b/rtmp-server.yaml new file mode 100644 index 0000000..0d1268f --- /dev/null +++ b/rtmp-server.yaml @@ -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 \ No newline at end of file