k3s/cmd/kubelet/app
Kubernetes Submit Queue dcf14add92 Merge pull request #37228 from sjenning/teardown-terminated-volumes
Automatic merge from submit-queue (batch tested with PRs 37228, 40146, 40075, 38789, 40189)

kubelet: storage: teardown terminated pod volumes

This is a continuation of the work done in https://github.com/kubernetes/kubernetes/pull/36779

There really is no reason to keep volumes for terminated pods attached on the node.  This PR extends the removal of volumes on the node from memory-backed (the current policy) to all volumes.

@pmorie raised a concern an impact debugging volume related issues if terminated pod volumes are removed.  To address this issue, the PR adds a `--keep-terminated-pod-volumes` flag the kubelet and sets it for `hack/local-up-cluster.sh`.

For consideration in 1.6.

Fixes #35406

@derekwaynecarr @vishh @dashpole

```release-note
kubelet tears down pod volumes on pod termination rather than pod deletion
```
2017-01-20 12:34:52 -08:00
..
options reclaim terminated pod volumes 2017-01-20 11:08:35 -06:00
BUILD find and replace 2017-01-20 08:04:53 -05:00
OWNERS Update OWNERS 2017-01-18 15:19:06 -08:00
auth.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
bootstrap.go find and replace 2017-01-20 08:04:53 -05:00
bootstrap_test.go find and replace 2017-01-20 08:04:53 -05:00
clientgo.go switch webhook to clientgo 2017-01-09 16:53:24 -05:00
plugins.go clean up exec network plugin 2016-12-27 14:04:57 -08:00
server.go find and replace 2017-01-20 08:04:53 -05:00
server_linux.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
server_test.go Kubelet Refactoring 2016-08-25 10:57:31 -07:00
server_unsupported.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00