kubespray 容器存储设备 -- rook ceph

1./root/kubespray/roles/docker/docker-storage/defaults/main.yml  #在用kubespray部署集群是制定docker用什么设备

 docker_container_storage_setup_devs: /dev/vdb

2.~/cluster/examples/kubernetes/ceph/cluster.yaml

storage: # cluster level storage configuration and selection
 #如果为FALSE,可以踢出问题node,否则不行useAllNodes: true
 useAllDevices: false
nodes:
 # - name: "172.17.4.101"
 # directories: # specific directories to use for storage can be specified for each node
 # - path: "/rook/storage-dir"

 

指定ceph存储路径 lvm可以扩展

nodes:
- name: "hostname1"
directories: # specific directories to use for storage can be specified for each node
- path: "/home/data/ceph"
- name: "hostname2"
directories: # specific directories to use for storage can be specified for each node
- path: "/home/data/ceph"

转载于:https://www.cnblogs.com/hixiaowei/p/9955559.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值