Kubernetes local directory folder data not getting mounted to Kubernetes pod

6/3/2020

Here is the interesting part, the folders are getting mounted inside the pod but the files are not getting mounted inside the pod.

I am trying to do this in my deployment file-

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		
-- Aman Agrawal
google-kubernetes-engine
kubernetes

0 Answers