Kubernetes StatefulSet simply explained | Deployment vs StatefulSet

  Переглядів 218,413

TechWorld with Nana

3 роки тому

StatefulSet Kubernetes | Understand what StatefulSet in Kubernetes is and how it works
Using StatefulSet in practice 🙅🏼‍♀️ ► ukposts.info/have/v-deo/gnelfqCWpXdyk6c.html
Kubernetes Operator explained (manager for your stateful application 🚀) ► ukposts.info/have/v-deo/oJFkgKCje2yYmJs.html
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 ► ukposts.info/have/v-deo/fYF_g5WihG9nrqM.html
Kubernetes Components explained ► ukposts.info/have/v-deo/g6Khlmprj4hhw58.html
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.

КОМЕНТАРІ: 244
@karthikmohan2133
@karthikmohan2133 3 роки тому
Stumbled on to this channel today, never found any better. Thanks a lot creator.
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thank you, I really appreciate your comment!
@vitalieberega3327
@vitalieberega3327 2 роки тому
@@TechWorldwithNana ВБЫДВДВД
@ashwanisharma6709
@ashwanisharma6709 Рік тому
All doubts cleared… you rocked nana😊
@saikrishnavits
@saikrishnavits 3 роки тому
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.
@r.c8756
@r.c8756 2 роки тому
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 !
@rahulek914
@rahulek914 3 роки тому
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
@TechWorldwithNana 3 роки тому
Thank you so much Rahul for your feedback! 🙏 Happy that it was so useful to you!
@stephanelenglet3017
@stephanelenglet3017 2 роки тому
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 ! 👏👏👏
@acassioqueirozz
@acassioqueirozz 3 роки тому
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
@TechWorldwithNana 3 роки тому
Thanks, I'm glad you think so! Do my best to deliver quality content for you 💪🏼
@ramm0000
@ramm0000 3 роки тому
Perfectly explained high level concepts . Can completely now relate to all the connected components and able to visualise entire structure .
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thanks, that's awesome, glad that my video helped you in getting a big picture 👍
@rsivakanth
@rsivakanth 3 роки тому
Just started with one video and can't stop till I watch all of them, crystal clear. Looking forward to many more, Thanks!
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thank you Sivakanth. I hope you won't get tired of supporting the channel. Keep safe and blessed. 😇
@amanuelyohannes7151
@amanuelyohannes7151 Рік тому
Totally impressed with the delivery of concept!!! Thank you!!
@shaileshchaskar6093
@shaileshchaskar6093 2 роки тому
Exaclty what I was looking for - very simple and precise explanation.Thanks alot.
@ashafir20
@ashafir20 3 роки тому
best development /devops youtube channel ever, great content by Nana!
@ramkumar-kr6pl
@ramkumar-kr6pl 3 роки тому
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 !!
@amitpawar1677
@amitpawar1677 2 роки тому
Thanks for such simple explanation. Great job Nana...
@MrDevo
@MrDevo 8 місяців тому
Thank you for the amazing explanation!
@MrVineet09
@MrVineet09 3 роки тому
Thank you very much, finally able to understand what I was looking for..
@56YTFGFH4
@56YTFGFH4 3 роки тому
Wow. So much work and detailing in explaining things. Thanks for this. Very helpful.
@venkateshnaicker7085
@venkateshnaicker7085 Рік тому
Very very neat and simplified explanation! Awesome contents, Nana!
@jhonsen9842
@jhonsen9842 2 роки тому
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.
@anilkommalapati6248
@anilkommalapati6248 3 роки тому
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
@TechWorldwithNana 3 роки тому
Thank you so much Anil 🙂 I'm happy to hear such positive feedback!
@cascossi809
@cascossi809 3 роки тому
Simply magistrally explained and with outstanding infography. Thank you very much indeed. Cannot wait to watch the rest of the series. Subscribed!
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thank you Cascossi. Much appreciated. 😇
@diogofiaminghi442
@diogofiaminghi442 11 днів тому
Thank you very much! You are an excellent teacher!
@ZeusCanonliil
@ZeusCanonliil 3 роки тому
awesome explanations, thanks for this, I'm learning so much from you 🙏
@iammrchetan
@iammrchetan 3 роки тому
Nice Video with good explanation! Keep doing good work, Nana! Loved this!
@gganesh9
@gganesh9 2 роки тому
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.
@chrajamraju
@chrajamraju Рік тому
Very well explained in simple way. Best video.
@leandromuniz6295
@leandromuniz6295 3 роки тому
Easy to understand and very detailed information. Thanks!
@ezehemeka7833
@ezehemeka7833 2 місяці тому
I appreciate your efforts in explaining these concepts in your videos. Thanks for everything you do Nana, 1m subs in a bit.
@analyticsjassal1720
@analyticsjassal1720 3 роки тому
Thanks for the efforts. Nicely and crisply explained.
@koorshashirazi2037
@koorshashirazi2037 3 роки тому
Completely comprehensive and useful. thank you.
@sofianeel9680
@sofianeel9680 3 роки тому
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.
@DeepakGC
@DeepakGC 2 роки тому
Thank you!! you made it super easy to understand the concept, subscribed :)
@andreaselvers3201
@andreaselvers3201 2 роки тому
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.
@tibbydudeza
@tibbydudeza 3 роки тому
Thanks for giving an clear explanation and using slides and not whiteboard scribbles.
@BharatSingh-hf1yt
@BharatSingh-hf1yt 2 роки тому
best channel for kubernetes thanks
@pravataranjandashfse2677
@pravataranjandashfse2677 3 роки тому
Such a clear and detailed explanation in so short period of time. Awesome👍
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thanks Pravata, happy you liked my video! :)
@ajaye6612
@ajaye6612 3 роки тому
Thanks TechWorld Team! Amazing explanation, Understood the concepts of the Stateful set after a few months
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
You're welcome Ajay. Wishing you all the best in your profession. 😇
@vishnuanil7691
@vishnuanil7691 2 роки тому
That was a really really nice explanation that I could not even find from the Kube documents. thanks
@thiagarajlakshmanan2449
@thiagarajlakshmanan2449 2 роки тому
You have answers for my each question, as a video! Thank you...Subscribed!!!
@bukowski_
@bukowski_ 2 роки тому
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¡¡
@ayanSaha13291
@ayanSaha13291 Рік тому
Excellent video. Thanks for helping us understanding the topic.
@sabburaj
@sabburaj 3 роки тому
As usual, very nice content, Nana! Thank you so much for this excellent video. You have explained it very well.
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thank you 🙏
@JeffSmathers
@JeffSmathers 3 роки тому
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?
@krisdoe
@krisdoe 3 роки тому
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.
@palagirinagarjunareddy725
@palagirinagarjunareddy725 3 роки тому
Very clear nd nicely explained.. thanks for your efforts🙏
@soulfulman4834
@soulfulman4834 2 роки тому
Mind blowing explanation of each topic which I have learn for K8s... Thanks a lot Nana & love❤️ from India 🇮🇳🇮🇳
@helsonkumar8173
@helsonkumar8173 3 роки тому
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
@TechWorldwithNana 3 роки тому
Thank you so much!! That's so great to hear 😊
@AmolGautam
@AmolGautam Рік тому
Thank you. This is really helpful
@akshayhiremath4584
@akshayhiremath4584 3 роки тому
Good overview use case of StatefulSets ! 👍🏽
@Farrukhw
@Farrukhw 3 роки тому
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
@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?
@user-xb5dh6yk5g
@user-xb5dh6yk5g 6 місяців тому
very comprehensive video and great slides
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Kubernetes Operator explained (manager for your stateful application 🚀) ► ukposts.info/have/v-deo/oJFkgKCje2yYmJs.html Using StatefulSet in practice 🙅🏼‍♀️ ► ukposts.info/have/v-deo/gnelfqCWpXdyk6c.html ▬▬▬▬▬▬ 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 👉🏼 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 DevOps. Please don't forget to subscribe and give me a thumbs up if you liked my video 🤓
@vishnuvardhan6643
@vishnuvardhan6643 3 роки тому
Ansible
@bapisahoo9233
@bapisahoo9233 3 роки тому
Great Job ! Explained very clearly. Waiting for the next video on StatefulSet configuration file. Thank u..
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
You're welcome Bapi. 😇
@gv.ramana
@gv.ramana 3 роки тому
awesome amazing tutorial very detailed explanation. One of the best channel in youtube. your work behind the presentation is simply awesome
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thank you, that's very sweet to say. Much appreciated. 😇
@jasmineverdant
@jasmineverdant 3 роки тому
Great Job. excellently explained. you're a gem
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thanks a lot!
@babug6070
@babug6070 3 роки тому
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?.
@rohitvishwakarma2871
@rohitvishwakarma2871 2 роки тому
You're the best! Subscribed
@dharmangroy9049
@dharmangroy9049 Рік тому
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. 👍
@bzqr2k
@bzqr2k 3 роки тому
Hi Nana! Great topic and explanation! Thank Youuuu!
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
You're welcome Mauricio, glad you liked it :)
@nagarajdoddi4985
@nagarajdoddi4985 3 роки тому
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
@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. 😇
@nalcow
@nalcow Рік тому
excellent Lectures, Very useful ! thank you
@thomash.8297
@thomash.8297 3 роки тому
Thanks, perfect explained.
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thank you Tom, glad you liked my way of explaining!
@rbascu84
@rbascu84 3 роки тому
as always, very good explicacoines. Thank you
@jhonnySonnny
@jhonnySonnny 3 роки тому
Wow thanks for sharing such a great video here!!!
@user-nh1yz5vo4o
@user-nh1yz5vo4o 3 роки тому
The best kuberneres lecturer
@chiragprajapati9316
@chiragprajapati9316 2 роки тому
awsome video so many things learning from this.
@julionicodantas
@julionicodantas 4 місяці тому
You are the best!
@roshansharma3438
@roshansharma3438 3 роки тому
Hi Nana loved the way you explain. Could you please share us the next video with some real-time examples 🙂
@himamanikantavaskuri1504
@himamanikantavaskuri1504 3 роки тому
Great Explanations
@keerthisumanth8106
@keerthisumanth8106 3 роки тому
Brilliant and just wonderful waiting for next video
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thanks a lot! Next video coming soon :)
@syedibrahim-il2gj
@syedibrahim-il2gj 3 роки тому
Very Well Explained
@pallavkan
@pallavkan 3 роки тому
Superb!!
@yogireddy8129
@yogireddy8129 2 роки тому
great explanation many thanks ...
@Sami-bc9iv
@Sami-bc9iv 3 роки тому
Good job!!!. Excellent work!!!
@na111111
@na111111 3 роки тому
very helpful. Thank you and keep making these short videos :)
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Hi Raghu, I will :)
@prateekdwivedi2911
@prateekdwivedi2911 3 роки тому
Thanks a ton .... These videos are super helpful... Please keep on making videos..
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thanks, will keep creating quality videos 💪🏼🤗
@mayureshpatilvlogs
@mayureshpatilvlogs 3 роки тому
thanks for such easy explanation. keep it up 👍
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Hi Mayuresh, glad my explanation was helpful and easy to follow :)
@midhunk7984
@midhunk7984 3 роки тому
Nice one ! clear explanation.
@yassersaied7279
@yassersaied7279 2 роки тому
Amazing as usual
@2006akkgmail
@2006akkgmail 3 роки тому
Very well explained. Thank you.
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
You're welcome. Glad you liked it. 😇
@ajayjeetsharma
@ajayjeetsharma 3 роки тому
Great work Nana!!
@abhijitzanak
@abhijitzanak 3 роки тому
nicely explained as always, thanks.
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thanks, glad you think so! :)
@andreicorpodeanu5579
@andreicorpodeanu5579 3 роки тому
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
@TechWorldwithNana 3 роки тому
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
@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!
@shubhamkumar4672
@shubhamkumar4672 3 роки тому
Nicely explained, appreciate your efforts :-)
@riyashussain7406
@riyashussain7406 3 роки тому
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?
@RamanKathpalia
@RamanKathpalia 3 роки тому
Wow! Real good content. This channel is indeed underrated.
@TechWorldwithNana
@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
@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
@TechWorldwithNana 3 роки тому
@@RamanKathpalia 🙂 thanks
@arvindsinha1566
@arvindsinha1566 Рік тому
Thanks for explanation
@mohammedsuhailbasha4860
@mohammedsuhailbasha4860 3 роки тому
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
@TechWorldwithNana 3 роки тому
Thanks Mohammed! As mentioned in the video I will make a more practical video about StatefulSets
@surekhadani8487
@surekhadani8487 6 місяців тому
Just WOW !!
@ankitgiri6874
@ankitgiri6874 Рік тому
amazing session Thanks
@KresnaPermana
@KresnaPermana 3 роки тому
Wow, You're good at explaining new subscriber added!
@davetube75
@davetube75 Рік тому
Amazing!
@arshashikumar
@arshashikumar 3 роки тому
Thank you Nana for the great content and explaining with crisp and clear details. I am a Newbie to kubernetes. Is it possible to create a course content with sequence number so that it helps to follow the course in order?
@MrChinook1991
@MrChinook1991 3 роки тому
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?
@user-xp2rz4ff6y
@user-xp2rz4ff6y 2 роки тому
좋은 영상 잘보고 갑니다~!
@juancamilo1370
@juancamilo1370 3 роки тому
muy claro, muchas gracias!
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
De nada Juan 😇
@mamun001
@mamun001 2 роки тому
Thank you!!!
@farrukhahmedsid
@farrukhahmedsid 3 роки тому
Very well explained.. Thanks
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thank you Farrukh. Please don't forget to subscribe and share. 😇
@mopsik4ever
@mopsik4ever 3 роки тому
Perfect thank you
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
You're welcome, glad you liked it :)
@doviche
@doviche 3 роки тому
I got to say only one word: Great!
@TechWorldwithNana
@TechWorldwithNana 3 роки тому
Thank you 🙏🙂
@shayRM777
@shayRM777 Рік тому
Thank you nana!
@TechWorldwithNana
@TechWorldwithNana Рік тому
thanks so much for the support!