准备工作
- 所有节点开启ip_forward
cat <<EOF > /etc/sysctl.d/ceph.conf
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
sysctl --system
开始部署Operator
- 部署Rook Operator
#无另外说明,全部操作都在master操作
cd $HOME
git clone https://github.com/rook/rook.git
cd rook
cd cluster/examples/kubernetes/ceph
kubectl apply -f operator.yaml
- 查看Operator的状态
#执行apply之后稍等一会。
#operator会在集群内的每个主机创建两个pod:rook-discover,rook-ceph-agent
kubectl -n rook-ceph-system get pod -o wide