Skip to content

Instantly share code, notes, and snippets.

@xetys xetys/
Last active Oct 30, 2017

What would you like to do?
rancher cluster
# --volume-plugin-dir=/var/lib/rancher/etc/vol-plugins
apt update && apt install -y && docker pull rancher/server:stable && docker pull rancher/agent:v1.2.6
apt update && apt install -y && docker pull rancher/agent:v1.2.6
docker run -d --name=rancher-server --restart=unless-stopped -p 8080:8080 rancher/server:stable
curl -LO$(curl -s
chmod a+x kubectl
mv kubectl /usr/local/bin
mkdir ~/.kube
touch ~/.kube/config
git clone
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":{"":"true"}}}'
git clone
# 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
You can’t perform that action at this time.