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,980 points
4,458 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,300 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, 2019 in Kubernetes by DareDev
• 6,890 points
13,910 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, 2019 in Kubernetes by Ramya
4,716 views
+2 votes
2 answers

Difference between a replica set and replication controller

Olaaa Jinu! Replica set and replication controller - ...READ MORE

answered Dec 19, 2019 in Kubernetes by Kalgi
• 52,350 points
25,781 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17, 2019 in Others by anonymous
15,455 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,024 views
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,300 points
2,433 views
0 votes
1 answer

Difference between kubectl apply and kubectl create?

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

answered Sep 11, 2018 in Kubernetes by ajs3033
• 7,300 points
14,500 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP