-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove reloads when there is no endpoints #3367
Conversation
internal/ingress/controller/nginx.go
Outdated
@@ -820,7 +820,7 @@ func post(url string, data interface{}) error { | |||
return err | |||
} | |||
|
|||
glog.V(2).Infof("Posting to %s", url) | |||
glog.V(2).Infof("Posting to %s JSON payload %s", url, string(buf)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to be careful with this since the payload includes private key as well in dynamic certificate mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed. I added that temporarily to help to debug.
to be clear only when number of endpoints is 0. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, ElvinEfendi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Which issue this PR fixes: fixes #3315
This PR removes the need to reload NGINX when there is a change in the number of endpoints (in particular 0).
Without this PR, when the replica count is 0 we had this
which triggered the reload. With the introduced changes there is no difference in the configuration file