scality / metalk8s

An opinionated Kubernetes distribution with a focus on long-term on-prem deployments
Apache License 2.0
362 stars 45 forks source link

Consider deploying spotify-docker-gc #388

Open NicolasT opened 6 years ago

NicolasT commented 6 years ago

@giacomoguiulfo suggested to deploy spotify-docker-gc (available as a chart: https://github.com/helm/charts/tree/master/stable/spotify-docker-gc) to ensure leftover containers (and, to a lesser extent, images) are properly cleaned up.

Thoughts?

ssalaues commented 6 years ago

There are options to configure GC with specific values via Kubelet as well. I'm not sure if that has already been configured via MetalK8s but if that doesn't suffice, then definitely having a job that runs GC would be awesome. I've had issues in the past on heavily used clusters where kubelet fails as a result of too many containers.

https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/#container-collection