Skip to main content

TCP

Deployment

  1. Select TCP protocol from the list of protocols and click on "Next Step".

    Choose TCP

  2. Fill in the device name, device manufacturer, device type, and device model. The device name is the identifier used to distinguish different devices in Shifu Cloud. Then click on "Next Step".

    Enter device information

  3. Enter the IP address with the port number of the device you want to connect to.

    Enter device information

  4. Click on "Deploy", copy and paste the command from the pop-up to deploy the device into your Kubernetes cluster.

    Deploy device Deploy in Kubernetes

Usage (IP Camera Example)

  1. Use kubectl get pod -n deviceshifu to view device deployment status.

    View device status

  2. To access the device:

    1. From within the Kubernetes cluster, use the URL {SERVICE_NAME}.deviceshifu.svc.cluster.local:80 to access the device.
    2. From outside the Kubernetes cluster, use the following command to forward a local port (3000 in this example) to the service port (80):
     kubectl port-forward service/{SERVICE_NAME} -n deviceshifu 3000:80

    Port forward

  3. Access the device via http://localhost:3000, for example, in VLC media player, use the URL rtsp://{username}:{password}@localhost:3000 to access the IP camera's video stream.

    VLC Open Stream

    VLC Stream