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,390 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,080 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,670 points
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
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
0 votes
1 answer

Set the concurrencyPolicy in a cronjob

The property concurrencyPolicy is part of the CronJob spec, ...READ MORE

answered Sep 18, 2018 in Kubernetes by Kalgi
• 36,220 points
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

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,080 points
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,080 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.