user_mda
user_mda

Reputation: 19418

creationTimestamp: null for Kubernetes replication controller template

What does it mean when the creationTimestamp for the template is null?

"template": {
          "metadata": {
            "creationTimestamp": null,
            "labels": {
              "name": "kube-template"
            }
          },

Upvotes: 5

Views: 4303

Answers (1)

Tim Allclair
Tim Allclair

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

Related Questions