Coder Social home page Coder Social logo

Pod stuck in terminating about knsk HOT 5 CLOSED

thyarles avatar thyarles commented on August 16, 2024
Pod stuck in terminating

from knsk.

Comments (5)

thyarles avatar thyarles commented on August 16, 2024

Hi @GregoryVds,

Thanks for reporting. Late last week we made a huge change on the script, now it try to delete the pod by kubectl force mode and, if it not work, by patching the finalizer of stuck resource. We can add more tries to avoid orphan resources.

Please, could you give us the output of kubectl get pod -n dataplane -o json?

from knsk.

GregoryVds avatar GregoryVds commented on August 16, 2024

Hi @thyarles,

Thanks for the quick answer! Good to know, I will update to the latest version of knsk in my CI build to get the latest improvements.

When it happened I was actually running commit 257a664 of knsk, which is 3 weeks old, so I certainly doesn't have those latest improvements.

I then tried to run by hand the master version on the cluster and it didn't clean the Pod. But maybe that is just because the 257a664 version had already wiped the Namespace itself, and thus Master version couldn't track resources in that Namespace that was already gone?

Anyway, I am emailing you the JSON dump.

from knsk.

thyarles avatar thyarles commented on August 16, 2024

@GregoryVds ,

Looking into your JSON I saw:

[...]
"deletionTimestamp": "2020-01-21T00:30:22Z",
[...]
"blockOwnerDeletion": true,
[...]

I think there is something blocking the deletion. What do you think?

from knsk.

thyarles avatar thyarles commented on August 16, 2024

Please, take a look at https://github.com/thyarles/knsk/tree/%238-terminating-resources. Don't use the option --delete-orphans yet, it is not intensive tested.

from knsk.

GregoryVds avatar GregoryVds commented on August 16, 2024

@thyarles Thanks for the help.

I think there is something blocking the deletion. What do you think?

=> To be honest I have no idea :-) I didn't have time to investigate much more...

I updated my CI script with the latest Master version of knsk.
I will close for now and make sure to reopen this issue in case I see the problem again.

Thanks again for knsk, that's very helpful :-)

from knsk.

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.