contour: Contour leader doesn't update endpoints in xDS cache after upstream pods recreation

What steps did you take and what happened:

  1. There is something about 8000 httpproxy objects with same ingressclass.
  2. There are 2 contour pods (leader and replica) and four envoy pods (daemonset).
  3. We recreate pods of application, that are upstreams of corresponding envoy cluster.
  4. After recreating of these pods, contour-replica has ip addresses of new pods as endpoints for this envoy cluster in eDS (via contour cli).
  5. Contour-leader has ip addresses of old (deleted) pods as endpoints for this envoy cluster in eDS (via contour cli).
  6. Envoy pods connected to contour leader pod return 503 error for requests to corresponding hosts.
  7. Envoy pods connected to contour replica pod serves requests correctly.
  8. Recreating of contour pods fixes this problem for a while.

What did you expect to happen:

Leader pod updates it’s state after app’s pod recreation.

Anything else you would like to add:

Environment:

  • Contour version: 1.29.2
  • Kubernetes version: (use kubectl version): 1.25.16, 1.27.16
  • Kubernetes installer & version: kops 1.26.5, kubeadm 1.27.16
  • Cloud provider or hardware configuration: AWS, Openstack
  • OS (e.g. from /etc/os-release): Ubuntu 24.04 LTS

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

@tsaarni before opening this issue, I had already tried to read contour debug logs (they have very intensive rate), record pprof sessions and traces (nothing suspicious), watch all metrics contour has. My next idea is to add my own logs on any step of the way of eventslice from api-server to xds cache. Now I also can’t even imagine what is the cause of it.