Kubernetes - - k8s - v1.12.3 动态存储管理GlusterFS及使用Heketi扩容GlusterFS集群

1,准备工作

1.1 所有节点安装GFS客户端

yum install glusterfs glusterfs-fuse -y

1.2 如果不是所有节点要部署GFS管理服务,就在需要部署的节点上打上标签

[root@k8s-master01 ~]# kubectl label node k8s-master01 storagenode=glusterfs
node/k8s-master01 labeled
[root@k8s-master01 ~]# kubectl label node k8s-node01 storagenode=glusterfs
node/k8s-node01 labeled
[root@k8s-master01 ~]# kubectl label node k8s-node02 storagenode=glusterfs
node/k8s-node02 labeled

1.3 载入指定的个别模块

modprobe dm_snapshot
modprobe dm_mirror
modprobe dm_thin_pool

2,创建GFS管理服务容器集群

  • 本文采用容器化方式部署GFS,公司如有GFS集群可直接使用。
  • GFS已Daemonset的方式进行部署,保证每台需要部署GFS管理服务的Node上都运行一个GFS管理服务。
  • 下载相关文件:
wget https://github.com/heketi/heketi/releases/download/v8.0.0/heketi-client-v8.0.0.linux.amd64.tar.gz

猜你喜欢

转载自www.cnblogs.com/xiaoqshuo/p/10096682.html