0

In the example below, the Pod definition is embedded in the StatefulSet definition. Is there a way to separate the Pod definition to refer to a separately defined Pod definition?

enter image description here

mon
  • 18,789
  • 22
  • 112
  • 205
  • What do you mean by "separate"? – jabbson Nov 20 '21 at 03:30
  • You could indirectly do this using templating tools like Helm, but not in Kubernetes directly -- the StatefulSet controller itself takes responsibility for creating the Pod, and the Pod template is always inline in the StatefulSet specification. Is there a specific reason you want this setup? – David Maze Nov 20 '21 at 14:50

1 Answers1

1

Is there a way to separate the Pod definition to refer to a separately defined Pod definition

No.

For longer version, here is definition of StatefulSet

rkosegi
  • 14,165
  • 5
  • 50
  • 83