# Load balancer service using wrong Docker image

**URL:** <https://forums.suse.com/t/load-balancer-service-using-wrong-docker-image/4141>\
**Category:** Rancher 1.x\
**Created:** [September 29, 2016, 2:27pm UTC](https://forums.suse.com/t/load-balancer-service-using-wrong-docker-image/4141 "2016-09-29T14:27:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jeremy/32/12_2.png) [@jeremy](https://forums.suse.com/u/jeremy)\
**Post date:** [September 29, 2016, 2:27pm UTC](https://forums.suse.com/t/load-balancer-service-using-wrong-docker-image/4141/1 "2016-09-29T14:27:08Z")

</div>

I thought I had to be missing something at first, but I’ve now tested this in the UI and via API (many times each) and got the same results every time.

Reproduction steps with v1.1.4:

- create an empty stack
- add a load balancer service to that stack and start it
- go to the info page for that load balancer, click through to the containers in it, and observe that it’s `rancher/agent-instance:v0.8.3` instead of haproxy  
(optionally make the same check with the API and see the same results)

No errors anywhere - UI, API, server logs, or “audit logs” in the UI.

So, am I nuts or is that definitely broken?

(the API request)

```auto

// POST https://rancher.example.com/v1/projects/1a5/loadbalancerservices/

{
  "name": "lb-test",
  "environmentId": "1e5",
  "launchConfig": {
    "labels": {
      "io.rancher.loadbalancer.ssl.ports": "443"
    },
    "ports": [
      "80:80",
      "443:80"
    ]
  },
  "startOnCreate": true
}

```

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/7/75808f5de3fee53626f81571b0acfba62d46bd1c.png)

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [September 29, 2016, 3:46pm UTC](https://forums.suse.com/t/load-balancer-service-using-wrong-docker-image/4141/2 "2016-09-29T15:46:40Z")

</div>

The load balancer has always created containers with `agent-instance`. It’s a basic Ubuntu image plus the few things we need for the Network Agent and Balancers installed. `load-balancer-service` that you see in yaml is not an actual image. Though this will all be changing with the refactoring for 1.2.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [September 29, 2016, 4:25pm UTC](https://forums.suse.com/t/load-balancer-service-using-wrong-docker-image/4141/3 "2016-09-29T16:25:24Z")

</div>

Also inside the `agent-instance` is where haproxy software is running.

---

<div class="post-metadata">

**Author:** ![jeremy](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jeremy/32/12_2.png) [@jeremy](https://forums.suse.com/u/jeremy)\
**Post date:** [September 29, 2016, 5:48pm UTC](https://forums.suse.com/t/load-balancer-service-using-wrong-docker-image/4141/4 "2016-09-29T17:48:11Z")

</div>

Thanks for the quick response guys. Not sure how I never saw that before if it has always been that way.

Didn’t it used to show a load balancer instance in the host view? That’s what originally caught my attention this time. I launched it on a specific host, but then there appeared to be no containers on that host when I checked it. Yes, I know the agent containers haven’t been visible in that UI view for a while, but I swear I remember seeing a load balancer container before. No?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [September 30, 2016, 12:54am UTC](https://forums.suse.com/t/load-balancer-service-using-wrong-docker-image/4141/5 "2016-09-30T00:54:19Z")

</div>

Check this box in the upper-right corner:

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/4/4c584c59fdd70efa4165da716702ce1a14f6a5dc.png)
