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

kubed-sh left a bunch of pods running on my cluster after exit? #11

Closed
plombardi89 opened this issue Jan 22, 2018 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@plombardi89
Copy link

Wondering if this is normal behavior. I started kubed-sh then typed exit once launched and checked what was running and all the kubed-sh prepull-xyz pods were still running. I expected them to be terminated after I was done ...

default                    prepullbin-2gbk8                                      1/1       Running   0          7m
default                    prepullbin-75dcx                                      1/1       Running   0          7m
default                    prepullbin-c8234                                      1/1       Running   0          7m
default                    prepullbin-csnr8                                      1/1       Running   0          7m
default                    prepullbin-k31n3                                      1/1       Running   0          7m
default                    prepullbin-rdpsz                                      1/1       Running   0          7m
default                    prepulljs-56vwz                                       1/1       Running   0          7m
default                    prepulljs-6mb07                                       1/1       Running   0          7m
default                    prepulljs-8xln7                                       1/1       Running   0          7m
default                    prepulljs-dj6zz                                       1/1       Running   0          7m
default                    prepulljs-npb43                                       1/1       Running   0          7m
default                    prepulljs-nq5dr                                       1/1       Running   0          7m
default                    prepullpy-7mdvn                                       1/1       Running   0          7m
default                    prepullpy-8x9tx                                       1/1       Running   0          7m
default                    prepullpy-9dshc                                       1/1       Running   0          7m
default                    prepullpy-b6lv4                                       1/1       Running   0          7m
default                    prepullpy-dg440                                       1/1       Running   0          7m
default                    prepullpy-plk0f                                       1/1       Running   0          7m
default                    prepullrb-2p5x2                                       1/1       Running   0          7m
default                    prepullrb-3nhd8                                       1/1       Running   0          7m
default                    prepullrb-85hpj                                       1/1       Running   0          7m
default                    prepullrb-8qbh5                                       1/1       Running   0          7m
default                    prepullrb-gswjx                                       1/1       Running   0          7m
default                    prepullrb-lnjc9                                       1/1       Running   0          7m
@mhausenblas
Copy link
Owner

Thanks for trying out kubed-sh @plombardi89. This is indeed a bug (or better say: lack of proper garbage collection). You can get rid of it by issuing the following command:

kubectl delete ds --selector=gen=kubed-sh,scope=pre-flight 

If and when these DaemonSets are not around you will notice that kubed-sh on start-up will try to create them. You can disable this behaviour as described in the config section by launching kubed-sh with KUBEDSH_NOPREPULL=true.

Hope this helps?

@mhausenblas mhausenblas self-assigned this Jan 22, 2018
@mhausenblas mhausenblas added the bug Something isn't working label Jan 22, 2018
@mhausenblas mhausenblas added this to the Release 0.4 milestone Jan 22, 2018
@plombardi89
Copy link
Author

Your workaround cleaned it up. Thanks :)

@mhausenblas
Copy link
Owner

I'll have to think longer about how to handle this properly. Given that without pre-pulling the images the first launch of a program will fail, I don't see a good way right now (other than the user disables it explicitly using KUBEDSH_NOPREPULL=true. Will revisit this issue in a later release.

@mhausenblas mhausenblas modified the milestones: Release 0.5, Release 0.7 Feb 4, 2018
@mhausenblas mhausenblas removed this from the Release 0.7 milestone Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants