What's the intention to expose PodTemplate as a kubernetes api object?

3/26/2017

I found that there is an object PodTemplate registered in apiserver which we can use as other kube objects.

From the struct definition, PodTemplate contains PodTemplateSpec just as other workload objects, such as rc. But I do not find any usage of PodTemplate object from either doc or code. And rc/ps/ss does not have any reference to PodTemplate actually.

So I want to understand:

  • What's the intention to expose PodTemplate object from apiserver?
  • Is this object a legacy one which will be retired in the future?
-- X.G
kubernetes

1 Answer

3/26/2017

The official statement:

The objects exist and can be used. We don't really have a position on it today.

It is hoped that eventually StatefulSets and DaemonSets will have history, like Deployments, and that will make use of this object.

-- Janos Lenart
Source: StackOverflow