Skip to content
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

feat(kuma-dp): add a separate component to handle kuma-sidecar readiness probes #11107

Merged
merged 25 commits into from
Aug 28, 2024

Conversation

jijiechen
Copy link
Member

@jijiechen jijiechen commented Aug 13, 2024

Checklist prior to review

  • Link to relevant issue as well as docs and UI issues
  • This will not break child repos: it doesn't hardcode values (.e.g "kumahq" as a image registry) and it will work on Windows, system specific functions like syscall.Mkfifo have equivalent implementation on the other OS
    • Confirmed
  • Tests (Unit test, E2E tests, manual test on universal and k8s)
    • Added
    • Don't forget ci/ labels to run additional/fewer tests
  • Do you need to update UPGRADE.md?
    • No
  • Does it need to be backported according to the backporting policy? (this GH action will add "backport" label based on these file globs, if you want to prevent it from adding the "backport" label use no-backport-autolabel label) --

Changelog: feat(kuma-dp): respond probes of kuma-sidecar from kuma-dp process instead of Envoy

Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
…ager

Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
@jijiechen jijiechen requested a review from a team as a code owner August 13, 2024 05:24
@jijiechen jijiechen requested review from slonka and lobkovilya and removed request for a team August 13, 2024 05:24
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
@jijiechen jijiechen changed the title feat(kuma-dp): add a separate readiness component to handle dataplane health probes feat(kuma-dp): add a separate component to handle kuma-sidecar readiness probes Aug 13, 2024
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
app/kuma-dp/pkg/dataplane/readiness/component.go Outdated Show resolved Hide resolved
app/kuma-dp/pkg/dataplane/readiness/component.go Outdated Show resolved Hide resolved
pkg/xds/generator/admin_proxy_generator.go Outdated Show resolved Hide resolved
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Copy link
Contributor

@slonka slonka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nitpick. Once you check universal + 2 dpps feel free to merge it

@jijiechen
Copy link
Member Author

jijiechen commented Aug 23, 2024

I believe the CI failures are caused by image pulling issues that can recover in a different time.
It seems there is something with docker hub, they are not able to serve the image pulling at this time.
I've re-run the failed cases on my local machine and they passed. The cases are "CP - upgrading" scenarios which are not relevant to the changes in this PR.

@jijiechen jijiechen enabled auto-merge (squash) August 23, 2024 10:03
@jijiechen jijiechen merged commit 20208eb into kumahq:master Aug 28, 2024
35 checks passed
Copy link
Contributor

github-actions bot commented Aug 28, 2024

backporting to release-2.8 with action

backporting to release-2.4 with action
backporting to release-2.6 with action
backporting to release-2.7 with action

kumahq bot pushed a commit that referenced this pull request Aug 28, 2024
…ess probes (#11107)

* feat(kuma-dp): add a readiness handler
* feat(kuma-dp): support TERMINATING state
* use 9902 to expose dp readiness
* support port 0 to disable the dp readiness and use Envoy
* support ipv6 address: reuse AdminAddress and make readiness reporter listen on it
* don't send 503 when receiving SIGUSR2

---------

Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
kumahq bot pushed a commit that referenced this pull request Aug 28, 2024
…ess probes (#11107)

* feat(kuma-dp): add a readiness handler
* feat(kuma-dp): support TERMINATING state
* use 9902 to expose dp readiness
* support port 0 to disable the dp readiness and use Envoy
* support ipv6 address: reuse AdminAddress and make readiness reporter listen on it
* don't send 503 when receiving SIGUSR2

---------

Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
kumahq bot pushed a commit that referenced this pull request Aug 28, 2024
…ess probes (#11107)

* feat(kuma-dp): add a readiness handler
* feat(kuma-dp): support TERMINATING state
* use 9902 to expose dp readiness
* support port 0 to disable the dp readiness and use Envoy
* support ipv6 address: reuse AdminAddress and make readiness reporter listen on it
* don't send 503 when receiving SIGUSR2

---------

Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
kumahq bot pushed a commit that referenced this pull request Aug 28, 2024
…ess probes (#11107)

* feat(kuma-dp): add a readiness handler
* feat(kuma-dp): support TERMINATING state
* use 9902 to expose dp readiness
* support port 0 to disable the dp readiness and use Envoy
* support ipv6 address: reuse AdminAddress and make readiness reporter listen on it
* don't send 503 when receiving SIGUSR2

---------

Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
kumahq bot pushed a commit that referenced this pull request Aug 28, 2024
…ess probes (#11107)

* feat(kuma-dp): add a readiness handler
* feat(kuma-dp): support TERMINATING state
* use 9902 to expose dp readiness
* support port 0 to disable the dp readiness and use Envoy
* support ipv6 address: reuse AdminAddress and make readiness reporter listen on it
* don't send 503 when receiving SIGUSR2

---------

Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
jijiechen pushed a commit that referenced this pull request Aug 30, 2024
jijiechen pushed a commit that referenced this pull request Aug 30, 2024
jijiechen pushed a commit that referenced this pull request Aug 30, 2024
jijiechen pushed a commit that referenced this pull request Aug 30, 2024
@@ -65,6 +65,10 @@ func GetMetricsHijackerClusterName() string {
return Join("kuma", "metrics", "hijacker")
}

func GetDPPReadinessClusterName() string {
return Join("kuma", "readiness")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jijiechen added a commit that referenced this pull request Oct 29, 2024
… dataplane-token (#11849)

## Motivation

fixes #11848
<!-- Why are we doing this change -->

## Implementation information

Mark the option as required.

Includes a small fixes that resolves
#11107 (comment)

## Supporting documentation

<!-- Is there a MADR? An Issue? A related PR? -->

fixes #11848

<!--
> Changelog: skip
-->
<!--
Uncomment the above section to explicitly set a [`> Changelog:` entry
here](https://github.com/kumahq/kuma/blob/master/CONTRIBUTING.md#submitting-a-patch)?
-->

---------

Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport ci/run-full-matrix PR: Runs all possible e2e test combination (expensive use carefully)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve kuma-dp probe
6 participants