kubernetes: Pod scheduled event is unknown
What happened:
I deployed a deployment workload, and then I ran kubectl describe pod
and I found Schedule event’s timestamp is unknown:
Events: Type Reason Age From Message
Normal Scheduled <unknown> default-scheduler Successfully assigned default/canary-6758c6b466-5qnnp to master03 Normal Pulled 3m14s kubelet, master03 Container image “registry.aliyuncs.com/google_containers/echoserver:1.10” already present on machine Normal Created 3m14s kubelet, master03 Created container canary Normal Started 3m14s kubelet, master03 Started container canary
What you expected to happen: Timestamp of pod scheduled event was supposed to be 3m14s.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Time in my host was Sat Aug 15 13:42:54 CST 2020 ( run date command ) Time in my kube-scheduler pod was Sat Aug 15 05:42:54 UTC 2020 ( run date command )
Environment:
- Kubernetes version: v1.18.5
- Cloud provider or hardware configuration: hardware configuration
- OS (e.g:
cat /etc/os-release
): centos 7.6 - Kernel (e.g.
uname -a
): 3.10.0-1062.18.1.el7.x86_64 - Others: This kuberntes cluster is set up by kubeadm.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (22 by maintainers)
/close
https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/core/types.go#L4569
It has LastEventTimestamp.
Basically - what you need to do, is to: