Stateful Sets in Kubernetes

0 votes
Could somebody please explain what is ststeful sets in Kubernetes and what's the process for creating one?
Jul 15 in Kubernetes by Namik
• 1,200 points

1 answer to this question.

0 votes

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
answered Jul 15 by Sirajul
• 31,980 points

Related Questions In Kubernetes

+5 votes
2 answers

Redirecting host to service path in kubernetes

What you are trying to do is ...READ MORE

answered Mar 27, 2018 in Kubernetes by DragonLord999
• 8,380 points
0 votes
1 answer

unable to start Kubernetes due to so many open files in system

You can try the following steps: You can ...READ MORE

answered May 1, 2018 in Kubernetes by shubham
• 6,890 points
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
0 votes
1 answer
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
+3 votes
1 answer
0 votes
1 answer

What all components is the Master server in Kubernetes made up of?

Kubernetes is a combination of multiple parts ...READ MORE

answered Jul 11 in Kubernetes by Sirajul
• 31,980 points
0 votes
1 answer