During regular deployment process, all the instances of a pod are identical,and these stateless applications can be easily scaled up and down.
In a PetSet, each pod is unique and is been assigned with unique identifier that needs to be maintained. This is technique is generally used for more stateful applications.
Example creating Stateful Set:
Use the following command to get to start the creation of this StatefulSet
$ kubectl create -f abc-statefulset.yaml
Use get subcommand to see stateful sets:
$ kubectl get statefulsets
$ kubectl get pods
Get the volumes the set has created and claim for each pod :
$ kubectl get pv