Skip to content

add host local time to kube-state-metrics

Calvin Yu请求将github/fork/junotx/master合并到master

Created by: junotx

This pull request binds the time zone of the kube-state-metrics component to the host time zone to be consistent with the kube-controller-manager, which does this binding by default.

It fixes https://github.com/kubesphere/kubesphere/issues/4099 : KubeCronJobRunning alerts are related to the kube_cronjob_next_schedule_time metric, which is calculated by the kube-state-metrics component based on the cronJob instance's last schedule time and cron expression, so when no time zone is specified in a cron expression, the local’s is used.

/assign @benjaminhuo @pixiake

合并请求报告