caicloud / loadbalancer-controller

Kubernetes loadbalancer controller to provision ingress controller dynamically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: two deployments of provider of the same loadbalancer bounce

hicaistar opened this issue · comments

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened:
In a special circumstance, loadbalancer controller will generate two deployments of loadbalancer provider for the same loadbalancer. As we expect the code should choose one deployment and set the replica to '0', and it will be '0' forever. But what we got is:

  1. round1: set first one of deployment to '0'
  2. round2: set second one of deployement to '0', set first one deployment to '1'
  3. round3: set second one to '1', set first one to '0'
  4. recycle forever.....

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?: