Kubernetes StatefulSet simply explained | Deployment vs StatefulSet
StatefulSet Kubernetes | Understand what StatefulSet in Kubernetes is and how it works
Using StatefulSet in practice 🙅🏼♀️ ► • Step by Step Applicati...
Kubernetes Operator explained (manager for your stateful application 🚀) ► • Kubernetes Operator si...
In this Kubernetes StatefulSet tutorial, I explain the difference between Deployment and StatefulSet.
I also show you how to deploy databases using StatefulSet component.
Kubernetes StatefulSets are used to deploy specifically stateful applications. In order to understand how StatefulSet works, you first need to understand how database clusters work, as well concepts of Kubernets StatefulSet vs Deployment.
While StatefulSet is used for stateful applications, Deployment component is used to deploy stateless applications. So the question is: what is the difference between Deployment and StatefulSet components?
Pods deployed by Deployment are identical and interchangeable, created in random order with random hashes in their Pod names.
In contrast to that, the Pods deployed by StatefulSet component are NOT identical. They each have their own sticky identity, which they keep between restarts and each can be addressed individually. Thus, they can't be created or deleted at the same time or in any order.
How these identities are created and why its so important, I explain in detail in this video.
▬▬▬▬▬▬ T I M E S T A M P S
0:00 - Intro
0:07 - What is StatefulSet? Difference of stateless and stateful applications
1:57 - Deployment of stateful and stateless applications
3:42 - Deployment vs StatefulSet
5:40 - Pod Identity
6:14 - Scaling database applications: Master and Slave Pods
10:15 - Pod state
11:40 - Pod Identifier
13:17 - 2 Pod endpoints
14:27 - Final note - replicating stateful apps
15:26 - What we covered and what to learn next
-------------------------------------------------------------------------------------------------------
Full Kubernetes and Docker tutorial ► bit.ly/2YGeRp9
DevOps Tools, like Ansible ► bit.ly/2W9UEq6
Complete K8s Application Setup ► • Complete Application D...
Kubernetes Components explained ► • Kubernetes Components ...
For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible. Also please let me know what you want to learn about Docker & Kubernetes or another technology.
#kubernetes #kubernetestutorial #devops #techworldwithnana
-------------------------------------------------------------------------------------------------------
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
Join private Facebook group ► bit.ly/32UVSZP
Don't forget to subscribe ► bit.ly/3mO4jxT
DEV ► bit.ly/3h2fqiO
INSTAGRAM ► bit.ly/2F3LXYJ
TWITTER ► bit.ly/3i54PUB
LINKEDIN ► bit.ly/3hWOLVT
Legal Notice:
Kubernetes and the Kubernetes logo are trademarks or registered trademarks of The Linux Foundation in the United States and/or other countries. The Linux Foundation and other parties may also have trademark rights in other terms used herein. This video is not accredited, certified, affiliated with, nor endorsed by Kubernetes or The Linux Foundation.
Пікірлер: 247
Stumbled on to this channel today, never found any better. Thanks a lot creator.
@TechWorldwithNana
3 жыл бұрын
Thank you, I really appreciate your comment!
@vitalieberega3327
2 жыл бұрын
@@TechWorldwithNana ВБЫДВДВД
@ashwanisharma6709
Жыл бұрын
All doubts cleared… you rocked nana😊
This whole series covering docker and kubernetes is excellent, precise and easy to understand. Congratulations and thanks for your efforts. You have great teaching abilities. I specifically liked videos that cover practical aspects - for example, application deployment using k8s and docker-compose etc. Keep up your excellent work.
@TechWorldwithNana
3 жыл бұрын
Thank you so much Rahul for your feedback! 🙏 Happy that it was so useful to you!
Such an awesome explanation. I, being a devops engineer myself found this very useful. Thanks for a lot of hardwork that you're doing behind these videos to present to audience like me.
Jeez, as part of a dev team who’s currently struggling with devops issues cause our affiliate company that’s supposed to host our apps are completely useless and unresponsive of our requests, your vids really make my life better ! Thanks !
Congratulations for you job Nana! I've been learning about Kubernetes since few months ago and your channel is one of the best about this topic! I wish you continue growing and creating very good contents to youtube!
@TechWorldwithNana
3 жыл бұрын
Thanks, I'm glad you think so! Do my best to deliver quality content for you 💪🏼
Thank you so much Nana , you're videos are excellent ! All your series on Kubernetes are like this ! You succeed to explain main concepts in a easy way and it's not so easy to do ! 👏👏👏
Just started with one video and can't stop till I watch all of them, crystal clear. Looking forward to many more, Thanks!
@TechWorldwithNana
3 жыл бұрын
Thank you Sivakanth. I hope you won't get tired of supporting the channel. Keep safe and blessed. 😇
Hey..!!! You know what.....You deserve a big applause...!!! U covered almost everything abt Statefulset in this short video in detail..Can't resist watching your next video..Cheers...:)
@TechWorldwithNana
3 жыл бұрын
Thank you so much!! That's so great to hear 😊
Perfectly explained high level concepts . Can completely now relate to all the connected components and able to visualise entire structure .
@TechWorldwithNana
3 жыл бұрын
Thanks, that's awesome, glad that my video helped you in getting a big picture 👍
Thank you very much! You are an excellent teacher!
Maybe it is really important to mention that: 1. Know the database (if you are going to deploy database in K8s). Not all works the same way. For example, sharding as concept (found in Elastic) is very important. 2. Know your application requirements. Where is not possible to have stateless application, state-full self-contained application (deployed as StatefulSet) might make sense.
Totally impressed with the delivery of concept!!! Thank you!!
Thank you for all the videos Nana. Really your videos are much better than any other videos in you tube or even paid ones. Really everytime i wait for your videos when you are going to upload on K8s :) Thanks again for the videos
@TechWorldwithNana
3 жыл бұрын
That's so sweet of you Nagaraj. I try my best to make things clear as possible. I'm happy that you see it that way. Thank you so much. 😇
Very very neat and simplified explanation! Awesome contents, Nana!
So easily explained and with great clarity. You are a GEM 💎and a great inspiration. The animations are something that makes you very different and special. Thanks a lot Mrs.Nana for taking the pain to put those efforts in. Highly appreciated.👏👏👏👌👌👌
@TechWorldwithNana
3 жыл бұрын
Thank you so much Anil 🙂 I'm happy to hear such positive feedback!
I wish i could have seen this vidios 1 year before. To explain complex thing in a simple way you don't have to Genius . Fantatic and Superb effort.
Hi Nana, I started to follow your videos from 2dys back, all them are crystal clear to understand. Am preparing for an interview now so need detailed video about pod security policy. Cheers !!
Exaclty what I was looking for - very simple and precise explanation.Thanks alot.
Simply magistrally explained and with outstanding infography. Thank you very much indeed. Cannot wait to watch the rest of the series. Subscribed!
@TechWorldwithNana
3 жыл бұрын
Thank you Cascossi. Much appreciated. 😇
Thanks for such simple explanation. Great job Nana...
best development /devops youtube channel ever, great content by Nana!
Great Job ! Explained very clearly. Waiting for the next video on StatefulSet configuration file. Thank u..
@TechWorldwithNana
3 жыл бұрын
You're welcome Bapi. 😇
I appreciate your efforts in explaining these concepts in your videos. Thanks for everything you do Nana, 1m subs in a bit.
Thank you very much, finally able to understand what I was looking for..
Thanks a ton .... These videos are super helpful... Please keep on making videos..
@TechWorldwithNana
3 жыл бұрын
Thanks, will keep creating quality videos 💪🏼🤗
You're the best! Subscribed
Wow. So much work and detailing in explaining things. Thanks for this. Very helpful.
Thanks TechWorld Team! Amazing explanation, Understood the concepts of the Stateful set after a few months
@TechWorldwithNana
3 жыл бұрын
You're welcome Ajay. Wishing you all the best in your profession. 😇
Nana, thanks a bunch for such an awesome tutorial/explanation. This has cleared many of my concepts. Before this, I was thinking to have a single Volume for all the Stateful app replicas. Really appreciated your work... :)
@cagonvinon
3 жыл бұрын
Thanks lot to nana. I appreciate and have pleasure to follow all your contents. So if I create a same pv for all replicas what's the inconvenient?
Completely comprehensive and useful. thank you.
awesome amazing tutorial very detailed explanation. One of the best channel in youtube. your work behind the presentation is simply awesome
@TechWorldwithNana
3 жыл бұрын
Thank you, that's very sweet to say. Much appreciated. 😇
Nice Video with good explanation! Keep doing good work, Nana! Loved this!
Easy to understand and very detailed information. Thanks!
As usual, very nice content, Nana! Thank you so much for this excellent video. You have explained it very well.
@TechWorldwithNana
3 жыл бұрын
Thank you 🙏
Such a clear and detailed explanation in so short period of time. Awesome👍
@TechWorldwithNana
3 жыл бұрын
Thanks Pravata, happy you liked my video! :)
awesome explanations, thanks for this, I'm learning so much from you 🙏
best channel for kubernetes thanks
Very well explained in simple way. Best video.
Thanks for this great overview of StatefulSet.Must interesting was the claim that sateful applications are not perfect for containerised environments. This is a very important information if you start learning containerisation.
Thanks for giving an clear explanation and using slides and not whiteboard scribbles.
Thanks for the efforts. Nicely and crisply explained.
Thank you for the amazing explanation!
u are doing a gr8 job with the presentations. it is a lot of effort to make powerpoints for every video and all the notes. thank you.
I strongly agree with that so many others have said. You have created an excellent series on Kubernetes. Thank you very much. Do have plans to add a video about DaemonSet?
You have answers for my each question, as a video! Thank you...Subscribed!!!
Very well explained. Thank you.
@TechWorldwithNana
3 жыл бұрын
You're welcome. Glad you liked it. 😇
Wow! Real good content. This channel is indeed underrated.
@TechWorldwithNana
3 жыл бұрын
Thank you so much Raman! 🙏🙂 Hope it will gain more attention soon from youtube, so that it will be suggested to people who are interested in k8s. I would also be thankful for any support by liking and sharing to people, who want to learn about Docker & K8s :)
@RamanKathpalia
3 жыл бұрын
@@TechWorldwithNana Hello Nana, I've been sharing your videos with my team. We find them better than, let's say udemy. Thank you for posting.
@TechWorldwithNana
3 жыл бұрын
@@RamanKathpalia 🙂 thanks
Great Job. excellently explained. you're a gem
@TechWorldwithNana
3 жыл бұрын
Thanks a lot!
Thanks a lot for this video it really helped me to understand the purpose of the Statefulset and I can say that it is a really nice feature that k8s propose. As I started to learn about k8s, it's a good learning step done today after watching this video.
Mind blowing explanation of each topic which I have learn for K8s... Thanks a lot Nana & love❤️ from India 🇮🇳🇮🇳
Very well explained.. Thanks
@TechWorldwithNana
3 жыл бұрын
Thank you Farrukh. Please don't forget to subscribe and share. 😇
Thank you!! you made it super easy to understand the concept, subscribed :)
Excellent video. Thanks for helping us understanding the topic.
Got it, the different between deployment and statefulset. thanks
Brilliant and just wonderful waiting for next video
@TechWorldwithNana
4 жыл бұрын
Thanks a lot! Next video coming soon :)
Hi Nana! Great topic and explanation! Thank Youuuu!
@TechWorldwithNana
4 жыл бұрын
You're welcome Mauricio, glad you liked it :)
That was a really really nice explanation that I could not even find from the Kube documents. thanks
You are amazing¡¡ you don't know how much I've learned thanks to you¡¡ You have the ideas super clear and the resources are the best. Thank you so much¡¡
Good overview use case of StatefulSets ! 👍🏽
very comprehensive video and great slides
Hello Mam, A very well-explained concept for stateful sets. The most important part comes at the end that, the containerization platform is not suitable for stateful apps. Kudos to your explanation power. Keep posting such videos. 👍
Thanks, perfect explained.
@TechWorldwithNana
4 жыл бұрын
Thank you Tom, glad you liked my way of explaining!
Amazing explaination. Thank you so much for you. please make and upload videos on how to implement the statefulsets and how it configuration file looks like and how the master and slave methodology for databases was implemented in statefulsets. I have lot of questions in this area only.please make and upload videos on my above requests.
@TechWorldwithNana
4 жыл бұрын
Thanks Mohammed! As mentioned in the video I will make a more practical video about StatefulSets
Good job!!!. Excellent work!!!
Very clear nd nicely explained.. thanks for your efforts🙏
excellent Lectures, Very useful ! thank you
nicely explained as always, thanks.
@TechWorldwithNana
4 жыл бұрын
Thanks, glad you think so! :)
Wow thanks for sharing such a great video here!!!
as always, very good explicacoines. Thank you
Thank you. This is really helpful
very helpful. Thank you and keep making these short videos :)
@TechWorldwithNana
4 жыл бұрын
Hi Raghu, I will :)
thanks for such easy explanation. keep it up 👍
@TechWorldwithNana
4 жыл бұрын
Hi Mayuresh, glad my explanation was helpful and easy to follow :)
Here, I have learned a lot of things for Kubernetes. Thanks for doing these tutorials. Can you please make a video for MySQL Master and Slave Concept?.
Great work Nana!!
Superb!!
Nice one ! clear explanation.
great explanation many thanks ...
Thank u for great efforts
awsome video so many things learning from this.
Hey, Nana! Great content as always. I am curently a full-stack dev and I am very curious and fascinated about infrastructures, kubernetes and devops in general and your videos are great and extremely helpful! I have one small question, are you planning on doing a series of deploying an app in a kubernetes cluster in cloud services (google gke, aws) or baremetal? Thanks. Keep up the good work!
@TechWorldwithNana
4 жыл бұрын
Hi Andrei, happy to hear that my videos are helpful for you! 🙂 Cool I started also from full-stack development! To your question, yes I plan to create videos on deploying an app in one of the cloud platforms. Thanks again and keep up learning and watching my videos :D
@DoKcommunity
3 жыл бұрын
I also would love this! thanks for the hard work Nana! Also videos like these are why we created the data on k8s community! stateful app are a bit trickier!
Great Explanations
Very Well Explained
Nicely explained, appreciate your efforts :-)
Amazing as usual
I got to say only one word: Great!
@TechWorldwithNana
3 жыл бұрын
Thank you 🙏🙂
Very crisp Video, covering lots of information! - One question, If the Master statefulset Pod dies, then who would(i.e. which slave) get the write power to the DB (i.e. persistent volume), and to which DB it shall write?
Wow, You're good at explaining new subscriber added!
The best kuberneres lecturer
amazing session Thanks
Hi Nana loved the way you explain. Could you please share us the next video with some real-time examples 🙂
She is a kubernetes wizard who has passion in sharing content. Who is doing a backup of this girl? :) thanks Ana for spending time preparing a high quality material.
@TechWorldwithNana
3 жыл бұрын
Thank you Renato :) Appreciate your comment!
You are the best!
Thanks for explanation
very good video, Thanks
Nice explanation
I like the presentation Animation
awesome video
Fantastic video, thank you! What happens in this scenario: a stateful application continually receives requests to update a database (e.g. MySQL) that is hosted on the k8s cluster as a StatefulSet. What happens in the time between Master pod failure and spinning up a new Master pod? Are the update database requests buffered until a new Master pod is available that can write the updates to the DB?
muy claro, muchas gracias!
@TechWorldwithNana
3 жыл бұрын
De nada Juan 😇
Just WOW !!