- Machine with 8GB RAM, SSD – Run 1 rancher server and 3 nodes (change the RAM size)
- Machine with 16GB RAM NVME Disk – Run 1 Rancher Server and 3 VMS
- 4 VMs running in Cloud (2GB each, ensure security group has UDP 500 & 4500, TCP 8080, 10255,10256, 2049 & 80 open. Recommend all traffic on UDP and TCP allowed in local network)
Only run Docker 1.12.6 if you want the K8s demo to work!
- https://www.vagrantup.com/ (For installing Vagrant)
- https://www.mls-software.com/opensshd.html (Windows only, install OpenSSHD on Windows to ensure vagrant can ssh into nodes to do provisioning
- https://github.com/chrisurwin/rancher-rodeo (Github repository containing all the necessary files to run your Vagrant setup)
- Get started with:
$ git clone https://github.com/chrisurwin/rancher-rodeo && cd rancher-rodeo
$ vagrant up
$ vagrant ssh rancherserver
sudo docker run -d -p 8080:8080 rancher/rancher
mkdir /home/rancher/nfs
sudo docker run -d --name nfs --restart=always --privileged --net=host -v /home/rancher/nfs:/nfsshare -e SHARED_DIRECTORY=/nfsshare itsthenetwork/nfs-server-alpine:4
NB: Update the command with the path to your NFS folder
- Determine version of kubectl needed by running
kubectl version
in CLI - Download kubectl version for your platform (macOS/Linux/Windows): https://kubernetes.io/docs/tasks/tools/install-kubectl/
- If using RancherOS GA on cloud, run: (on Vagrant this is done automatically on
vagrant up
) sudo ros engine switch docker-1.12.6
sudo system-docker restart docker
cd rancher-rodeo/k8s
kubectl apply -f deployment.yaml
NB: Update the IP address to your NFS server IP addresskubectl apply -f class.yaml
helm init
helm repo update
helm install stable/wordpress --name wordpress --set persistence.enabled=true,persistence.storageClass=managed-nfs-storage,mariadb.persistence.storageClass=managed-nfs-storage