title: HAProxy Ingress Controller Service Changed IP on GCP
body: <p>I am using HAProxy as the ingress-controller in my GKE clusters. And exposing HAProxy service as LoadBalancer service(Internal).</p>
  <p>Recently, I experienced an issue, where the HA-Proxy service changed its EXTERNAL-IP, and traffic stopped routing to HAProxy. This issue occurred multiple times on different days(now it has stopped). I had to manually add that new External-IP to the frontend of that Loadbalancer to allow traffic to HAProxy.<br />
  There were two pods running for HAProxy, and both had been running for days, and there was nothing in their logs. I assume it was something related to Service or GCP LB and not HAProxy itself.<br />
  I am afraid that I don't have any logs related to that.</p>
  <p>I still don't know, what caused the service IP to change. As there were no recent changes, and the cluster and all services were running for many days properly, and suddenly this occurred.</p>
  <p>Has anyone faced a similar issue earlier? Or what can I do to avoid such issue in future?<br />
  What could have caused the IP to change?</p>
  <p>This is how my service is configured:</p>
  <pre><code>---
  apiVersion: v1
  kind: Service
  metadata:
    labels:
      run: haproxy-ingress
    name: haproxy-ingress
    namespace: haproxy-controller
    annotations:
      cloud.google.com/load-balancer-type: &quot;Internal&quot;
      networking.gke.io/internal-load-balancer-allow-global-access: &quot;true&quot;
      cloud.google.com/network-tier: &quot;Premium&quot;
  spec:
    selector:
      run: haproxy-ingress
    type: LoadBalancer
    ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: 80
    - name: https
      port: 443
      protocol: TCP
      targetPort: 443
    - name: stat
      port: 1024
      protocol: TCP
      targetPort: 1024
  
  </code></pre>
  <p>Found some logs:</p>
  <pre><code>Warning SyncLoadBalancerFailed 30m (x3570 over 13d) service-controller Error syncing load balancer: failed to ensure load balancer: googleapi: Error 409: IP_IN_USE_BY_ANOTHER_RESOURCE - IP '10.17.129.17' is already being used by another resource.
  Normal EnsuringLoadBalancer 3m33s (x3576 over 13d) service-controller Ensuring load balancer
  </code></pre>