The following steps quickly deploy a Rancher Server with a single node cluster attached.
Prerequisites
- Vagrant: Vagrant is required as this is used to provision the machine based on the Vagrantfile.
- Virtualbox: The virtual machines that Vagrant provisions need to be provisioned to VirtualBox.
- At least 4GB of free RAM.
Getting Started
-
Clone Rancher Quickstart to a folder using
git clone https://github.com/rancher/quickstart. -
Go into the folder containing the Vagrantfile by executing
cd quickstart/vagrant. -
Optional: Edit
config.yamlto:- Change the number of nodes and the memory allocations, if required. (
node.count,node.cpus,node.memory) - Change the password of the
adminuser for logging into Rancher. (default_password)
- Change the number of nodes and the memory allocations, if required. (
-
To initiate the creation of the environment run,
vagrant up. -
Once provisioning finishes, go to
https://172.22.101.101in the browser. The default user/password isadmin/admin.
Result: Rancher Server and your Kubernetes cluster is installed on VirtualBox.
What's Next?
Use Rancher to create a deployment. For more information, see Creating Deployments.
Destroying the Environment
-
From the
quickstart/vagrantfolder executevagrant destroy -f. -
Wait for the confirmation that all resources have been destroyed.