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,206 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,496 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,445 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,360 points
25,186 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
14,587 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 6,070 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,079 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,171 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