Running Rancher is as simple as launching two containers. One container as the management server and another container on a node as an agent.
From in the instruction above it is saying about manager and agent, now my two questions are
- What is an agent node? why does it has to be in the same manager node?
- Why there’s no instruction to install agent node?
Go to UI.
Infrastructure > Hosts
Click on add host
and run the docker run cmd in step 5.
The server (API, UI, etc) is one container. “Node” in that sentence is a host/computer which will be used to run your containers. Each node runs the Rancher agent, which is another container, and that does what the server says to to create/restart/etc containers.
The server container can be run on a host that is also running the agent, but there is no reason it has to.
Thanks! It’s clearer now. Is this concept only applies on Cattle or to any other supported orchestration?
You add hosts to a Rancher environment. If using Kubernetes/Mesos/Swarm it is then also automatically added as the appropriate concept in there (e.g. node in k8s).