StatefulSet, ReplicaSet or DaemonSet. What is the best for a single Pod? StatefulSet, ReplicaSet or DaemonSet. What is the best for a single Pod? kubernetes kubernetes

StatefulSet, ReplicaSet or DaemonSet. What is the best for a single Pod?


Deployment is the most common option to manage a Pod or set of Pods. These are normally used instead of ReplicaSets as they are more flexible and creating a Deployment results in a ReplicaSet - see https://www.mirantis.com/blog/kubernetes-replication-controller-replica-set-and-deployments-understanding-replication-options/

You would only need a StatefulSet if you had multiple Pods and needed dedicated persistence per Pod or you had multiple Pods and the Pods need individual names because they relate to each other (e.g. one is a leader) - https://stackoverflow.com/a/48006210/9705485

A DaemonSet would be used when you want one Pod/replica per Node