Code Monkey home page Code Monkey logo

Comments (4)

marquiz avatar marquiz commented on September 22, 2024

Thanks @nobbs for the report. This is a recognized issue. There are measures we've taken to mitigate the problem of stale objects and labels. Which version of NFD were you using?

  1. #1491 (released in NFD v0.15) added owner references to NodeFeature objects so that stale objects are GC'd (by Kubernetes) when the nfd worker pod that created it is deleted.
  2. #1532 (will be released in NFD v0.16) is somewhat related (albeit does not help with stale NF objects) added a post-delete hook in the Helm chart to remove all NFD-generated labels when NFD gets uninstalled.
  3. #1592 is an upcoming feature to limit/select the k8s namespaces where to watch NodeFeature objects.

For kustomize-based deployments doing kubectl delete -k ... deletes the nfd namespace and the stale NodeFeature objects as well. It will not cleanup the labels, though.

from node-feature-discovery.

nobbs avatar nobbs commented on September 22, 2024

Hey @marquiz - thanks for the info.

As we tried to track the releases nfd quite closely - most of the time delayed by 2-4 weeks - and the timeline the issue started, I'm pretty sure we migrated from one namespace to another either on one of the last v0.13.x patch releases or even on v0.14.0. The obsolete NodeFeature resources definitely had no owner references set at the time I've deleted them.

Based on the PRs you've linked it looks like the chance of running into this issue is basically naught with the recent / upcoming versions. Free to close this issue as resolved. :)

from node-feature-discovery.

marquiz avatar marquiz commented on September 22, 2024

@nobbs thx for reporting back. I'll close this for now but please reopen if you encounter any further issues.
/close

from node-feature-discovery.

k8s-ci-robot avatar k8s-ci-robot commented on September 22, 2024

@marquiz: Closing this issue.

In response to this:

@nobbs thx for reporting back. I'll close this for now but please reopen if you encounter any further issues.
/close

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.

from node-feature-discovery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.