I have some strange problem with rancher agent on some of my hosts. I have 2 rancher agents that are running :
- rancher/agent:v1.0.2 (with name = rancher-agent)
- rancher/agent:latest (with name = rancher-agent-init)
And they are both restarting randomly.
I have two kinds of host : Hyper-V (on premise) VM and Amazon EC2 VM. For the Hyper-V VMs I have manually added them in my rancher environment. For the EC2 VMs I have added them through a Chef recipe.
In this chef recipe I install docker engine, rancher agent, registrator and consul agent. I think I have a problem in this recipe because I end up with rancher-agent and rancher-agent-init only on EC2 created via chef.
So, I’d like to know what it’s the difference between rancher-agent and rancher-agent-init ?