diff options
author | adarsh1001 <adarshpalsingh1996@gmail.com> | 2018-08-30 21:26:08 +0530 |
---|---|---|
committer | adarsh1001 <adarshpalsingh1996@gmail.com> | 2018-08-30 21:44:57 +0530 |
commit | 09c584273e02f351a7bcc91840aa0867d9b30484 (patch) | |
tree | 7dded6c75bfb4f98d36889576eefd71a3834daf0 /edge/sample/live_stream_app/deployment_uv4l.yml | |
parent | c7e0f161092e6affccf50e4faf59d6eef4f4314d (diff) |
Add docker and deployment scripts for exemplar video streaming microservice
JIRA: CLOVER-72
This issue falls under the "Edge Cloud-Native Cluster" intern project and is a part of both Clover and Edge cloud projects. The scripts added are of an exemplar video streaming microservice designed to run on the raspberry pi edge cluster. This commit includes the docker scripts to containerize the UV4L stream and the kubernetes deployment script to correctly run the microservice as a pod on the cluster. The detailed description of the project and the instructions for using the scripts are documented in the README.
Change-Id: Ice4e5e7e63c2eb617556eaef1255801ffac851e7
Signed-off-by: adarsh1001 <adarshpalsingh1996@gmail.com>
Diffstat (limited to 'edge/sample/live_stream_app/deployment_uv4l.yml')
-rw-r--r-- | edge/sample/live_stream_app/deployment_uv4l.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/edge/sample/live_stream_app/deployment_uv4l.yml b/edge/sample/live_stream_app/deployment_uv4l.yml new file mode 100644 index 0000000..5dadb9c --- /dev/null +++ b/edge/sample/live_stream_app/deployment_uv4l.yml @@ -0,0 +1,49 @@ +--- +kind: Service +apiVersion: v1 +metadata: + name: uvservice +spec: + selector: + app: uvapp + ports: + - protocol: "TCP" + # Port accessible inside cluster + port: 8081 + # Port to forward to inside the pod + targetPort: 9090 + # Port accessible outside cluster + nodePort: 30002 + type: LoadBalancer + + + +--- +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: uvdeployment +spec: + replicas: 1 + template: + metadata: + labels: + app: uvapp + spec: + containers: + - name: uvapp + image: localhost:5000/clover-live-stream:latest + volumeMounts: + - mountPath: /dev/ + name: dev-dir + ports: + - containerPort: 9090 + args: ["720", "480", "40"] + securityContext: + privileged: true + volumes: + - name: dev-dir + hostPath: + path: /dev/ + nodeSelector: + camera: yo |