Heath checks being distributed outside the stack - service stays in "Initializing" state

I have a catalog of services that deploy app server on 3 hosts and load balancer on 2 hosts; the load balancer has a health check on port 80. When the stack is deployed, sometimes the load balancer is stuck in “Initializing” state.

Inspection of > “/etc/healthcheck/healthcheck.cfg” file on the rancher agents shows that the hosts in the current stack has health check rules set for a stack that was previously deployed. I am assuming that is because Rancher was not able to setup the health check on 3 agents in the previous stack.


Current Stack

LB 1 -> 10.42.85.134
LB 2 -> 10.42.210.220

App Server 1 -> 10.42.191.226:80
10.42.3.163:80

App Server 2 -> 10.42.191.226:80
10.42.85.134:80

App Server 3 -> 10.42.3.163:80
10.42.210.220:80


Different Stack

LB 1 -> 10.42.191.226
LB 2 -> 10.42.3.163


is it possible to setup rules within Rancher to setup health checks on hosts within the same stack?

Thanks,
Anil