Skip to content

Instantly share code, notes, and snippets.

@xetys xetys/commands.sh
Last active Oct 30, 2017

Embed
What would you like to do?
rancher cluster
# --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
You can’t perform that action at this time.