Skip to content

unnecessary reload when pod update  #4945

@owanio1992

Description

@owanio1992

Describe the bug
I am useing nginx ingress and CDR VirtualServer
I understand default upstream use pod IP not service IP for some reason
when I update upstream'pod, pod IP will change
so will trigger nginx reload

so if I have 100 pod,when rollingUpdate 1 by 1
nginx will reload 100 times
but current reload need consume large memory/cpu
so I add config use-cluster-ip: true
and going to nginx pods check config is right ( /etc/nginx/conf.d/vs_xxxx), only use service cluster IP

but when rollingUpdate pod 1 by 1
nginx still reload every time when pod change
I hope there should no need reload

To Reproduce

  1. use VirtualServer with config use-cluster-ip: true
  2. trigger pod rollingUpdate (update pod image)
  3. check nginx log how many reconfiguring

Expected behavior
no need reload

Your environment

  • Version of the Ingress Controller : 3.4.0
  • Version of Kubernetes: 1.28
  • Kubernetes platform : EKS
  • Using NGINX

Additional context
does there have config can set reload behavior ?
like reload frequency,minimum reload interval .... or any can reduce reload frequency

Metadata

Metadata

Assignees

Labels

backlogPull requests/issues that are backlog itemsbugAn issue reporting a potential bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions