Files
kubernetes/pkg/kubelet
Kubernetes Submit Queue f59b04b82d Merge pull request #48739 from yguo0905/fix-dup-metrics
Automatic merge from submit-queue

Remove the status of the terminated containers in the summary endpoint

Ref: https://github.com/kubernetes/kubernetes/issues/47853

- When building summary, a container is considered to be terminated if it has an older creation time and no CPU instantaneous or memory RSS usage.
- We remove the terminated containers in the summary by grouping the containers with the same name in the same pod, sorting them in each group by creation time, and skipping the oldest ones with no usage in each group. Let me know if there's simpler way.

**Release note**:
```
None
```
/assign @yujuhong
2017-08-15 00:47:28 -07:00
..
2017-08-13 15:43:42 +08:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-07-10 14:05:46 -07:00
2017-06-22 11:31:03 -07:00
2017-07-19 11:33:06 +08:00