Last active
May 26, 2022 16:34
-
-
Save parth-gr/a7292de20dd2a92af65046fac1030efb to your computer and use it in GitHub Desktop.
Rook-ceph Cluster installation on minikube.(3 nodes)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for running -> | |
# 1) chmod +x rook-cluster.sh | |
# 2) ./rook-cluster.sh | |
#!/bin/bash -e | |
echo "*** Rook-Cluster ***" | |
# Create a minikube cluster | |
minikube start --driver=kvm2 --nodes 3 | |
# Add storage to a minikube cluster | |
echo "*** adding storage device in minikube ***" | |
sudo -S qemu-img create -f raw /var/lib/libvirt/images/minikube-box2-vm-disk1-1G 5G | |
virsh -c qemu:///system attach-disk minikube --source /var/lib/libvirt/images/minikube-box-vm-disk-1G --target vdx --cache none | |
virsh -c qemu:///system reboot --domain minikube | |
sudo -S qemu-img create -f raw /var/lib/libvirt/images/minikube-box2-vm-disk1-2G 5G | |
virsh -c qemu:///system attach-disk minikube-m02 --source /var/lib/libvirt/images/minikube-box-vm-disk-2G --target vdy --cache none | |
virsh -c qemu:///system reboot --domain minikube-m02 | |
sudo -S qemu-img create -f raw /var/lib/libvirt/images/minikube-box2-vm-disk1-3G 5G | |
virsh -c qemu:///system attach-disk minikube-m03 --source /var/lib/libvirt/images/minikube-box-vm-disk-3G --target vdz --cache none | |
virsh -c qemu:///system reboot --domain minikube-m03 | |
# Restart minikube cluster | |
minikube start | |
# deploy mainefest | |
cd / | |
cd $GOPATH | |
cd src/github.com/rook/rook/deploy/examples | |
kubectl create -f common.yaml | |
kubectl create -f crds.yaml | |
kubectl create -f operator.yaml | |
kubectl create -f cluster.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment