rook-ceph 集羣部署完成後,新建主機發現全部容器節點沒法掛載存儲空間:git
Rancher 平臺啓動容器報錯顯示:github
Deployment does not have minimum availability
我rke部署的k8s集羣,須要修改rke cluster.yaml 文件,將插件目錄到容器內部,添加內容以下:ide
kubelet: extra_args: cgroup-driver: 'systemd' kubelet: extra_args: volume-plugin-dir: /usr/libexec/kubernetes/kubelet-plugins/volume/exec extra_binds: - /usr/libexec/kubernetes/kubelet-plugins/volume/exec:/usr/libexec/kubernetes/kubelet-plugins/volume/exec
cd /etc/rke/ [root@cnvs-kubm-101-103 rke]# ll total 10716 -rw-r----- 1 root root 121688 Sep 4 11:09 cluster.rkestate -rw-r--r-- 1 root root 1567 Sep 4 11:00 cluster.yml -rw-r----- 1 root root 5431 Sep 4 11:08 kube_config_cluster.yml #執行 rke up
集羣升級完成後,重新創建存儲空間,再次啓動服務能夠正常掛載磁盤。flex
https://github.com/rook/rook/blob/master/Documentation/flexvolume.md插件