What's the difference betweena a deployment and a stateful set?

0 votes

I'm unable to exactly find the distinctions between what a deployment and what a statefulset is and in what different cases would you use each?

Oct 3, 2018 in Kubernetes by Damon Salvatore
• 5,510 points
863 views

1 answer to this question.

0 votes

Both the deployments and replication controllers are used for stateless applications and not as resource intensive. Statefulsets on the other hand are used when you need to preserve the state of the application(Stateful application). To save the states stateful sets use volumeClaimTemplates/claims of persistent volumes in order to keep the state safe in case of crashes or restarts.

Basically StatefulSets are used for stateful applications where the data at any given point is important while stateless apps can be deployed using Deployments.
Further details can be found here and here.
answered Oct 3, 2018 by ajs3033
• 7,280 points

Related Questions In Kubernetes

0 votes
1 answer

What's the difference between kubernetes load balancer and ingress controller?

Load Balancer: So Kubernetes LoadBalancer just points ...READ MORE

answered Jan 4 in Kubernetes by DareDev
• 6,810 points
640 views
0 votes
2 answers

Difference between a Deployment and a DaemonSet in Kubernetes

Adding to @Rohit's answer, I'll explain about ...READ MORE

answered Jan 6 in Kubernetes by Ramya
1,030 views
0 votes
1 answer

Difference between a replica set and replication controller

Replica Set and Replication Controller do almost ...READ MORE

answered Apr 17 in Kubernetes by Sahit
2,553 views
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,006 views
+3 votes
1 answer
0 votes
1 answer

Modifying a deployment without editing the file manually

You can try kubectl patch to do ...READ MORE

answered Aug 24, 2018 in Kubernetes by ajs3033
• 7,280 points
92 views
0 votes
1 answer

Difference between kubectl apply and kubectl create?

These are two very different approaches. kubectl ...READ MORE

answered Sep 10, 2018 in Kubernetes by ajs3033
• 7,280 points
6,013 views