标签:空间 exec 部署 min yam system ati ref net
rook-ceph 集群部署完成后,新建主机发现所有容器节点无法挂载存储空间:Rancher 平台启动容器报错显示:
Deployment does not have minimum availability
我rke部署的k8s集群,需要修改rke cluster.yaml 文件,将插件目录到容器内部,添加内容如下:
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
集群升级完成后,从新建立存储空间,再次启动服务可以正常挂载磁盘。
https://github.com/rook/rook/blob/master/Documentation/flexvolume.md
标签:空间 exec 部署 min yam system ati ref net
原文地址:https://blog.51cto.com/michaelkang/2435496