Richard Bucker

rancher very quick start

Posted at — Apr 21, 2015

This is so easy and simple it makes me nuts:download and install virtualboxdownload and install vagrantgit clone os-vagrantvagrant upvagrant ssh rancher-01docker run -d -p 8080:8080 rancher/serverifconfig (get the eth1 ipaddr)open local browser: hosts (already by default view)click + add hostreview and click save settingsclick customcopy the command in step 3 omit the leading ‘sudo'exit (CTRL+D) the terminal session on rancher-01vagrant ssh rancher-02paste the command: docker run -d –privileged -v /var/run/docker.sock:/var/run/docker.sock rancher/agent:v0.5.2 (CTRL+D) the terminal session on rancher-02vagrant ssh rancher-03paste the command: docker run -d –privileged -v /var/run/docker.sock:/var/run/docker.sock rancher/agent:v0.5.2 might have to refresh the browser a few times as the agent(s) startupAt this point you have a 3 node deployment of rancherOS with rancher server running on rancher-01 and rancher agent(s) running on nodes rancher-02 and rancher-03.If you’re an enterprise class user:then you might need to increase the number of nodes in the Vagrantfile, redeploy, relink all of the agents and so onyou’ll want to deploy your own registry serverand you might want to disable or intercept the public repos via some dns trickeryThe rancher tooling does not include any OS or rancher tools for monitoring, health, alerting, logging and so on… so you really have to start bolting IoT (internet of things) onto your environment. It also depends on whether you want to self host these operations or add SaaS type operations.One thing to note about any of these orchestration applications. (a) there is a certain amount of magnification (or Mandelbrot) that takes place between bare metal and containers; so keep an eye on the APIs because they may be the one constant. (b) you will still need bare metal servers to provide services that you do not want to be inside the VM or container. HA/load balancers, NTP, DNS, PXE server and storage servers come to mind.PS: if you are going to run rancherVMs inside your containers then you gotta have huge bare metal hosts and you need a way to orchestrate the work as rancher leaves that to the user.