scaling down will send unnecessary alerts
kind/buglifecycle/rotten
The npd component checks the health status of kube-proxy via the /healthz interface
https://github.com/kubernetes/node-problem-detector/blob/2baac6c06751cc6dccd8b0ad9b6d08b6780f1a13/pkg/healthchecker/types/types.go#L83
When cluster-autoscaler performs elastic scaling down, it will add the ToBeDeletedByClusterAutoscaler taint to nodes. When a node has the ToBeDeletedByClusterAutoscaler taint, the /healthz interface of kube-proxy will consider itself to be in an unhealthy state.
https://github.com/kubernetes/kubernetes/blob/d4672d9a9db5687c4561048c4840ef1f8ccb3c75/pkg/proxy/healthcheck/proxy_health.go#L188
The elastic scaling down of cluster-autoscaler is standard behavior and should not trigger any alarms, as it can cause confusion.
5 条评论