用户手册:接入设备之接入Hikvision摄像头

获取模板

在examples/rtspDeviceShifu中查看模板文件。

修改配置

examples/rtspDeviceShifu/camera-deployment/deviceshifu-camera-deployment.yaml中:

spec:
  ...
  template:
    ...
    spec:
      containers:
      ...
      - image: edgehub/camera-python:v0.0.1
        ...
        env:
        - name: EDGEDEVICE_NAME
          value: "edgedevice-camera"
        - name: EDGEDEVICE_NAMESPACE
          value: "devices"
        - name: IP_CAMERA_ADDRESS
          value: "192.168.14.254" # 修改此值
        - name: IP_CAMERA_USERNAME
          value: "admin" # 修改此值
        - name: IP_CAMERA_PASSWORD
          value: "password" # 修改此值
        - name: IP_CAMERA_CONTAINER_PORT
          value: "11112" # 修改此值
        ...

推荐使用Secret存储密码,对于接入设备这是不必要的,但是这样会大大加强安全性

你可能感兴趣的:(物联网,golang,软件架构)