Reputation: 19418
What does it mean when the creationTimestamp
for the template is null
?
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"name": "kube-template"
}
},
Upvotes: 5
Views: 4303
Reputation: 7817
The template in the ReplicationControllerSpec defines the template for a Pod that the ReplicationController will create, but since it's an abstract template, it doesn't make sense for it to have a creation time. Once the ReplicationController creates a pod, the CreationTimestamp will be set to the time the Pod was created at.
The ReplicationController also has its own metadata (not in the template) which should include the CreationTime of the ReplicationController object.
Upvotes: 2