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"

posted @ 2018-11-13 23:26  littlevigra  阅读(449)  评论(1编辑  收藏  举报