【无标题】deployment does not have minimum availability

最近在部署一个应用到边缘端时发现始终出错,deployment does not have minimum availability,翻译就是部署没有最低可用性,在网上看了看,发现都在说是docker部署的内存问题,cpu问题,尝试几次无果后,重新阅读yaml文件,发现问题是部署时镜像没有配置到对应位置
作者这里是将tensorflow下载到本地,以免配置镜像过大,不方便版本迭代

        volumeMounts:
        - mountPath: /usr/local/lib/python3.7
          name: site-pkg
      volumes:
      - name: site-pkg
        hostPath:
          path: /root/volume_sitepkg/site-packages

这里是把tensorflow的位置映射到本地的路径下,查看发现说明的路径少了site-packages

        volumeMounts:
        - mountPath: /usr/local/lib/python3.7/site-packages
          name: site-pkg
      volumes:
      - name: site-pkg
        hostPath:
          path: /root/volume_sitepkg/site-packages

你可能感兴趣的:(harbor,k8s,kubeedge,tensorflow,人工智能,python)