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

Replace gRPC health probe utility with k8s built-in health probe #1046

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

fmuyassarov
Copy link
Member

Kubernetes 1.23 has introduced native health probes for gRPC which can replace
grpc_health_probe utility. This commit removes baking in grpc_health_probe
binary into the image and updates related health checks to use k8s native gRPC.

@netlify
Copy link

netlify bot commented Jan 30, 2023

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit 06036a6
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/650abab7fcd5450008beec5f
😎 Deploy Preview https://deploy-preview-1046--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 30, 2023
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 30, 2023
Copy link
Contributor

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 31, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: a713eb00f5b94fdeabaaef133c0f8c2c2b787501

@ArangoGutierrez
Copy link
Contributor

/assign @marquiz

@marquiz
Copy link
Contributor

marquiz commented Jan 31, 2023

Thanks @fmuyassarov for the patch. I think we're in no hurry with this one. There are probably many pre v1.23 clusters out there and I think e.g. AWS EKS still officially supports v1.22 for some time

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 31, 2023
@fmuyassarov
Copy link
Member Author

Yep good point. Let's keep it here for some time.

@ArangoGutierrez
Copy link
Contributor

Thanks @fmuyassarov for the patch. I think we're in no hurry with this one. There are probably many pre v1.23 clusters out there and I think e.g. AWS EKS still officially supports v1.22 for some time

/hold

What? isn't everyone running latest:nightly in prod? what a world we live in.....

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 3, 2023
@fmuyassarov
Copy link
Member Author

/retest

@fmuyassarov
Copy link
Member Author

/test

@k8s-ci-robot
Copy link
Contributor

@fmuyassarov: The /test command needs one or more targets.
The following commands are available to trigger required jobs:

  • /test pull-node-feature-discovery-build-gh-pages-generic
  • /test pull-node-feature-discovery-build-image-cross-generic
  • /test pull-node-feature-discovery-build-image-generic
  • /test pull-node-feature-discovery-build-master
  • /test pull-node-feature-discovery-verify-docs-master
  • /test pull-node-feature-discovery-verify-master

Use /test all to run the following jobs that were automatically triggered:

  • pull-node-feature-discovery-build-image-cross-generic
  • pull-node-feature-discovery-build-image-generic
  • pull-node-feature-discovery-build-master
  • pull-node-feature-discovery-verify-master

In response to this:

/test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@fmuyassarov
Copy link
Member Author

/test all

@ArangoGutierrez
Copy link
Contributor

fmuyassarov let's fix the merge conflict and I'll review again

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 1, 2023
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels May 1, 2023
@fmuyassarov
Copy link
Member Author

@ArangoGutierrez sorry for late response on this, rebase is done, but perhaps we can wait a bit more to not breaking possible users of k8s version below v1.23?

@ArangoGutierrez
Copy link
Contributor

@marquiz @fmuyassarov should we mark this as milestone for v0.15?

@marquiz
Copy link
Contributor

marquiz commented Jun 7, 2023

@marquiz @fmuyassarov should we mark this as milestone for v0.15?

v0.15 might be, K8s v1.22 was EOL'd last autumn

@fmuyassarov
Copy link
Member Author

@marquiz @fmuyassarov should we mark this as milestone for v0.15?

yes, 0.15 sounds good to me.
/milestone v0.15

@k8s-ci-robot
Copy link
Contributor

@fmuyassarov: You must be a member of the kubernetes-sigs/node-feature-discovery-maintainers GitHub team to set the milestone. If you believe you should be able to issue the /milestone command, please contact your Node Feature Discovery Maintainers and have them propose you as an additional delegate for this responsibility.

In response to this:

@marquiz @fmuyassarov should we mark this as milestone for v0.15?

yes, 0.15 sounds good to me.
/milestone v0.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ArangoGutierrez
Copy link
Contributor

/milestone v0.15

@k8s-ci-robot k8s-ci-robot added this to the v0.15 milestone Jun 7, 2023
@ArangoGutierrez
Copy link
Contributor

Let's make this part of #1187

@marquiz
Copy link
Contributor

marquiz commented Aug 28, 2023

Let's make this part of #1187

What do you mean? They're not related

@ArangoGutierrez
Copy link
Contributor

Let's make this part of #1187

What do you mean? They're not related

If we are moving away from GRPC into the API (IOW Kubernetes native objects), moving forward with this makes also more sense.
But 1187 doesn't depend on this.

@marquiz
Copy link
Contributor

marquiz commented Aug 28, 2023

If we are moving away from GRPC into the API (IOW Kubernetes native objects), moving forward with this makes also more sense.

But this still leverages gRPC. Just uses the K8s internal support for gRPC probes instead of an external tool

@ArangoGutierrez
Copy link
Contributor

If we are moving away from GRPC into the API (IOW Kubernetes native objects), moving forward with this makes also more sense.

But this still leverages gRPC. Just uses the K8s internal support for gRPC probes instead of an external tool

Agree, I was thinking just on the Kubernetes native part, and forgot the implementation

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 5, 2023
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@marquiz
Copy link
Contributor

marquiz commented Sep 20, 2023

@fmuyassarov @ArangoGutierrez I think we could merge this one. K8s v1.22 was EOL'd nearly a year ago and at least all the bigger CSPs (like GKE, EKS, AKS) have officially stopped supporting it, also OpenShift 4.

@ArangoGutierrez
Copy link
Contributor

@fmuyassarov @ArangoGutierrez I think we could merge this one. K8s v1.22 was EOL'd nearly a year ago and at least all the bigger CSPs (like GKE, EKS, AKS) have officially stopped supporting it, also OpenShift 4.

Needs rebase ;P
but I support moving forward here

Kubernetes 1.23 has introduced native health probes for gRPC which
can replace grpc_health_probe utility. This commit removes baking
in grpc_health_probe binary into the image and updates related
health checks to use k8s native gRPC.

Signed-off-by: Muyassarov, Feruzjon <feruzjon.muyassarov@intel.com>
@fmuyassarov
Copy link
Member Author

@fmuyassarov @ArangoGutierrez I think we could merge this one. K8s v1.22 was EOL'd nearly a year ago and at least all the bigger CSPs (like GKE, EKS, AKS) have officially stopped supporting it, also OpenShift 4.

Sounds good. Just rebased.

@ArangoGutierrez
Copy link
Contributor

/hold cancel

@k8s-ci-robot k8s-ci-robot removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Sep 20, 2023
Copy link
Contributor

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 20, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: e8d4ef68ca0c62969da35dec89b865018602b614

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ArangoGutierrez, fmuyassarov

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #1046 (06036a6) into master (a4cea16) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1046   +/-   ##
=======================================
  Coverage   30.02%   30.02%           
=======================================
  Files          56       56           
  Lines        7457     7457           
=======================================
  Hits         2239     2239           
  Misses       4974     4974           
  Partials      244      244           

@k8s-ci-robot k8s-ci-robot merged commit 7847edb into kubernetes-sigs:master Sep 20, 2023
12 checks passed
@marquiz marquiz mentioned this pull request Dec 20, 2023
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants