-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Change default agent health check port to avoid conflicts #19830
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
Conversation
Ref. https://github.com/cilium/cilium/blob/dfa6b157e8e9484c65fd938b2b45a4f5f50c61f9/daemon/cmd/agenthealth.go#L25-L31 Signed-off-by: Tobias Klauser <tobias@cilium.io>
The default value 9876 for the agent health port introduced in commit efffbdb ("daemon: expose HTTP endpoint on localhost for health checks") conflicts with Istio's ControlZ port. The latter has been in use for longer. Because the port is only exposed on localhost for use by liveness/readiness probe, we can change the default value without breaking users. Thus, change it to 9879 for which there doesn't seem to be any documented use. Suggested-by: Joe Stringer <joe@cilium.io> Signed-off-by: Tobias Klauser <tobias@cilium.io>
/test |
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.
Looks pretty straightforward. I assume this does not have any upgrade impact, as this is only used on the pod spec, which is always updated together with the cilium-agent image, correct?
That's my understanding as well. As far as I can tell it's only used in the cilium/install/kubernetes/cilium/templates/cilium-agent/daemonset.yaml Lines 101 to 166 in dfa6b15
|
Otherwise e.g. helm charts are checkout out from master instead of the PR's ref. Signed-off-by: Tobias Klauser <tobias@cilium.io>
L4LB test is failing (https://github.com/cilium/cilium/actions/runs/2330685480) because helm charts for installation are checked out from |
/test |
/ci-l4lb |
L4LB test passed with Removing that commit and re-triggering CI. |
4ebe1e1
to
c6c4fd9
Compare
/test |
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.
I'm not sure how the l4lb piece relates to the rest, but all of the individual changes LGTM.
The change to the l4lb workflow is necessary because before it was using the helm charts from |
Reviews are in and all required tests apart from L4LB XDP passed. That one was successful with the commit that's part of this PR, see #19830 (comment) and the explanation in #19830 (comment) Marking as ready to merge. |
This should fix issues occuring after the change of the agent health check port in #19830 Signed-off-by: Tobias Klauser <tobias@cilium.io>
This should fix issues occuring after the change of the agent health check port in #19830 Signed-off-by: Tobias Klauser <tobias@cilium.io>
This should fix issues occuring after the change of the agent health check port in #19830 Signed-off-by: Tobias Klauser <tobias@cilium.io>
This should fix issues occuring after the change of the agent health check port in #19830 Signed-off-by: Tobias Klauser <tobias@cilium.io>
The default value 9876 for the agent health port introduced in commit
efffbdb ("daemon: expose HTTP endpoint on localhost for health
checks") conflicts with Istio's ControlZ port. The latter has been in
use for longer. Because the port is only exposed on localhost for use by
liveness/readiness probe, we can change the default value without
breaking users. Thus, change it to 9879 for which there doesn't seem to
be any documented use.
Fixes #19817