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"

上一篇:amd,cmd规范


下一篇:《HTML5+CSS3网页设计入门必读》——1.8 了解在Web服务器上放置文件的位置