Kubernetes本地目录文件夹数据未安装到Kubernetes Pod

时间:2020-06-03 05:44:00

标签: kubernetes google-kubernetes-engine

这是有趣的部分,文件夹已安装在容器中,但文件未安装在容器中。

我正在尝试在我的部署文件中执行此操作-

volumeMounts:
    - mountPath: /fabric
      name: mypvc
    - mountPath: /host/var/run/docker.sock
      name: dockersocket
    - mountPath: /etc/hyperledger/fabric/msp
      name: msp-files
    - mountPath: /etc/hyperledger/fabric/tls
      name: tls-files

volumes: 

- name: mypvc
persistentVolumeClaim:
  claimName: mypvc
- name: dockersocket
hostPath:
  path: /var/run/docker.sock
- name: msp-files
hostPath:
  path: /home/dev-25-5/fabric/hyperledger/example.com/peer0/msp
- name: tls-files
hostPath:
  path: /home/dev-25-5/fabric/hyperledger/example.com/peer0/tls     

0 个答案:

没有答案