集群存在大量无状态(terminated)pod 切不会自动清理问题:
修改/etc/kubernetes/manifests/kube-controller-manager.yaml里的command命令后追加:
https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager
--terminated-pod-gc-threshold int32 Default: 12500
Number of terminated pods that can exist before the terminated pod garbage collector starts deleting terminated pods. If <= 0, the terminated pod garbage collector is disabled.
默认到达12500数量后才会清理,可以自定义设置更小的数量来gc