Last active
October 30, 2017 00:46
-
-
Save xetys/5908870f580bdcdcf633988873cb9141 to your computer and use it in GitHub Desktop.
rancher cluster
This file contains hidden or 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
# --volume-plugin-dir=/var/lib/rancher/etc/vol-plugins | |
apt update && apt install -y docker.io && docker pull rancher/server:stable && docker pull rancher/agent:v1.2.6 | |
apt update && apt install -y docker.io && docker pull rancher/agent:v1.2.6 | |
docker run -d --name=rancher-server --restart=unless-stopped -p 8080:8080 rancher/server:stable | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl | |
chmod a+x kubectl | |
mv kubectl /usr/local/bin | |
mkdir ~/.kube | |
touch ~/.kube/config | |
git clone https://github.com/rook/rook | |
cd rook/cluster/examples/kubernetes | |
kubectl apply -f rook-operator.yaml | |
kubectl apply -f rook-cluster.yaml | |
kubectl apply -f rook-storageclass.yaml | |
kubectl patch storageclass rook-block -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' | |
git clone https://github.com/coreos/prometheus-operator | |
# kill kubelet | |
docker ps | grep kubelet | awk '{print$1}' | xargs docker kill |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment