0
我按照这个例子来创建容量荚, https://github.com/kubernetes/kubernetes/blob/master/examples/cephfs/cephfs.yaml,我想对我来说有些不对。kubernetes荚容量使用cephfs
搬运工检查:
“到/ mnt/cephfs”: “/var/lib/kubelet/pods/7631bff0-7155-11e5-9e8a-000c29de7e43/volumes/kubernetes.io~empty-dir/cephfs”
和我的YAML是:
apiVersion: v1
kind: Pod
metadata:
name: cephfs
spec:
containers:
- name: cephfs-rw
image: centosphpok
volumeMounts:
- mountPath: "/mnt/cephfs"
name: cephfs
volumes:
- name: cephfs
cephfs:
monitors:
- 10.0.0.206:6789
user: admin
secretFile: "/etc/ceph/admin.secret"
readOnly: true
你能在'在/ var /登录您的节点上/ kubelet.log'看一下如果它在尝试安装音量时打印错误?如果您在pod中查看“/ etc/ceph/admin.secret”,它是否包含正确的信息以装入卷? –