-
Notifications
You must be signed in to change notification settings - Fork 3.4k
hubble: Refactor peer service as a cell #41674
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
|
Commit 1b0c57d does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
|
Commit 1b0c57d does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
1 similar comment
|
Commit 1b0c57d does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
abedc36 to
12bb337
Compare
|
Commit 12bb337 does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
12bb337 to
b46e740
Compare
|
/test |
|
Hi @kaworu , could you please help me with this issue?🙏 I've been consistently facing two test failures with the same root cause. The /¯¯\
/¯¯\__/¯¯\ Cilium: OK
\__/¯¯\__/ Operator: OK
/¯¯\__/¯¯\ Envoy DaemonSet: disabled (using embedded mode)
\__/¯¯\__/ Hubble Relay: 1 errors
\__/ ClusterMesh: disabled
DaemonSet cilium Desired: 2, Ready: 2/2, Available: 2/2
Deployment cilium-operator Desired: 1, Ready: 1/1, Available: 1/1
Deployment hubble-relay Desired: 1, Unavailable: 1/1
Containers: cilium Running: 2
cilium-operator Running: 1
clustermesh-apiserver
hubble-relay Running: 1
Cluster Pods: 4/4 managed by Cilium
Helm chart version: 1.19.0-dev
Image versions cilium quay.io/cilium/cilium-ci:b46e740d70578ef40b9f1839078d618223232a28: 2
cilium-operator quay.io/cilium/operator-generic-ci:b46e740d70578ef40b9f1839078d618223232a28: 1
hubble-relay quay.io/cilium/hubble-relay-ci:b46e740d70578ef40b9f1839078d618223232a28: 1
Errors: hubble-relay hubble-relay 1 pods of Deployment hubble-relay are not ready
Error: Unable to determine status: timeout while waiting for status to become successful: context deadline exceededI don't believe this is caused by my changes, so I started investigating further. I noticed a potential configuration mismatch: In values.yaml, the listenPort is set to 4245, but in the hubble-relay deployment template, the port is configured as 4222. Could this port mismatch be causing the timeout while waiting for status to become successful error? Any guidance would be greatly appreciated! Thank you! 😊 |
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.
Overall this LGTM, thank you for the initiative and great work @Liang-gong-ci-fang !
I left some suggestions, otherwise I appreciate you taking the time to add tests for getPort and for providing the HubbleConfig from the Hubble cell.
Also could you rebase and remove the merge commit?
|
@devodev I'm so grateful for your incredibly valuable advice. I'll definitely take some time to sincerely take it all in. |
11068ac to
09ba7b7
Compare
devodev
left a comment
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.
This looks great, thank you!
Left some nits but we could merge as-is :)
devodev
left a comment
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 think we can rebase the 3 commits into one for this change before merging, but thanks for splitting changes, it made it easy to review :)
d63a6d0 to
efc7728
Compare
efc7728 to
ee9aec2
Compare
|
/test |
kaworu
left a comment
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.
Hi @Liang-gong-ci-fang and thank you for the PR!
Overall LGTM, only some nitpicking / cosmetic comments.
|
@kaworu Thanks for the review and the helpful suggestions! |
|
/test |
ad71ec6 to
23a5357
Compare
kaworu
left a comment
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.
Thanks for the update @Liang-gong-ci-fang, please tidy up the comment message (you can do it with git commit --amend).
23a5357 to
6bce7f7
Compare
|
@Liang-gong-ci-fang sorry I merged #41679 without foreseeing that it would create a conflict in this PR. Can you please rebase the patch and resolve the conflict? Thank you. |
This commit refactors the Hubble peer service to use a cell-based architecture, addressing the technical debt and improving modularity. Fixes: cilium#40068 Signed-off-by: Li Tangke <544720830@qq.com>
6bce7f7 to
4318cb0
Compare
kaworu
left a comment
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.
Thanks for the quick update @Liang-gong-ci-fang 🚀
|
/test |
1 similar comment
|
/test |
This commit refactors the Hubble peer service to use a cell-based architecture, addressing the technical debt and improving modularity. The changes include:
Created a new peer service cell (pkg/hubble/peer/cell/cell.go):
Refactored hubble integration (pkg/hubble/cell/hubbleintegration.go):
Updated main hubble cell (pkg/hubble/cell/cell.go)
Added comprehensive tests (pkg/hubble/peer/cell/cell_test.go:
Fixes: #40068
Release note