rancher挂载路径查看

/var/lib/kubelet/pods/322fd503-5105-11e9-b487-00163e023514/volumes/kubernetes.io~nfs/pvc-32261c39-5105-11e9-971c-00163e021c46

322fd503-5105-11e9-b487-00163e023514:通过yaml文件, uid 的值。
pvc-32261c39-5105-11e9-971c-00163e021c46:查看pvc的值。

命令行方法:
kubectl describe po ml-service-production-65596c5bcb-fck65 -n smartenergy
获取容器ID
Container ID: docker://5feb32a38a38df713a5120e15eb81d1c30dd69f669f4cd5f004a2e6bdecccd6f
docker inspect 5feb32a38a38df713a5120e15eb81d1c30dd69f669f4cd5f004a2e6bdecccd6f
查看挂载路径
“Image”: “sha256:20f6b03048486cb742d42b73ff2eb30736b5fde1eb2e24afb0cf5e0665e86bf0”,
“ResolvConfPath”: “/var/lib/docker/containers/2acd4577b585d23948ad62279e83e7448bdda0b2 c0ce0c2bfb610cc9fcaaa92c/resolv.conf”,
“HostnamePath”: “/var/lib/docker/containers/2acd4577b585d23948ad62279e83e7448bdda0b2c0 ce0c2bfb610cc9fcaaa92c/hostname”,
“HostsPath”: “/var/lib/kubelet/pods/0cbea0c8-55da-11e9-97e9-00163e023514/etc-hosts”,
“LogPath”: “/var/lib/docker/containers/5feb32a38a38df713a5120e15eb81d1c30dd69f669f4cd5 f004a2e6bdecccd6f/5feb32a38a38df713a5120e15eb81d1c30dd69f669f4cd5f004a2e6bdecccd6f-json.log”,

你可能感兴趣的:(rancher)