Events kubernates事件creationTimestamp和firstTimestamp之间的差异

Events kubernates事件creationTimestamp和firstTimestamp之间的差异,events,kubernetes,Events,Kubernetes,当我描述kubernates事件时,它同时显示creationTimestamp和firstTimestamp,似乎两者都是相同的,这些时间戳之间的确切区别是什么 FirstTimestamp:首次记录事件的时间。(时间 服务器回执的类型为TypeMeta。) LastTimestamp:最近发生此事件的时间 事件被记录下来 编辑: 上述两个字段似乎都是由客户端库设置的: 注:不久前。 这意味着FirstTimestamp和LastTimestamp都不赞成使用EventTime 事件crea

当我描述kubernates事件时,它同时显示creationTimestamp和firstTimestamp,似乎两者都是相同的,这些时间戳之间的确切区别是什么

FirstTimestamp:首次记录事件的时间。(时间 服务器回执的类型为TypeMeta。)

LastTimestamp:最近发生此事件的时间 事件被记录下来

编辑:

上述两个字段似乎都是由客户端库设置的:

注:不久前。 这意味着FirstTimestamp和LastTimestamp都不赞成使用EventTime


事件creationTimestamp是api服务器在对象创建期间设置的字段。这是一个只读字段:

还可以查看api服务器以供参考,了解其设置方式。

来源:

FirstTimestamp:首次记录事件的时间。(时间 服务器回执的类型为TypeMeta。)

LastTimestamp:最近发生此事件的时间 事件被记录下来

编辑:

上述两个字段似乎都是由客户端库设置的:

注:不久前。 这意味着FirstTimestamp和LastTimestamp都不赞成使用EventTime


事件creationTimestamp是api服务器在对象创建期间设置的字段。这是一个只读字段:


另外,还可以查看api服务器,以查看其设置方式。

Hi,我想知道creationTimestamp和firstTimestamp之间的区别Hi,我想知道creationTimestamp和firstTimestamp之间的区别
// CreationTimestamp is a timestamp representing the server time when this object was
// created. It is not guaranteed to be set in happens-before order across separate operations.
// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
//
// Populated by the system.
// Read-only.