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

  • @karthikmohan2133
    @karthikmohan21333 жыл бұрын

    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😊

  • @rahulek914
    @rahulek9143 жыл бұрын

    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!

  • @saikrishnavits
    @saikrishnavits3 жыл бұрын

    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.c87562 жыл бұрын

    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 !

  • @acassioqueirozz
    @acassioqueirozz4 жыл бұрын

    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 💪🏼

  • @stephanelenglet3017
    @stephanelenglet30172 жыл бұрын

    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 ! 👏👏👏

  • @rsivakanth
    @rsivakanth3 жыл бұрын

    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. 😇

  • @helsonkumar8173
    @helsonkumar81733 жыл бұрын

    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 😊

  • @ramm0000
    @ramm00004 жыл бұрын

    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 👍

  • @diogofiaminghi442
    @diogofiaminghi442Ай бұрын

    Thank you very much! You are an excellent teacher!

  • @krisdoe
    @krisdoe3 жыл бұрын

    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.

  • @amanuelyohannes7151
    @amanuelyohannes7151 Жыл бұрын

    Totally impressed with the delivery of concept!!! Thank you!!

  • @nagarajdoddi4985
    @nagarajdoddi49853 жыл бұрын

    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. 😇

  • @venkateshnaicker7085
    @venkateshnaicker7085 Жыл бұрын

    Very very neat and simplified explanation! Awesome contents, Nana!

  • @anilkommalapati6248
    @anilkommalapati62483 жыл бұрын

    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!

  • @jhonsen9842
    @jhonsen98422 жыл бұрын

    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.

  • @ramkumar-kr6pl
    @ramkumar-kr6pl3 жыл бұрын

    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 !!

  • @shaileshchaskar6093
    @shaileshchaskar60932 жыл бұрын

    Exaclty what I was looking for - very simple and precise explanation.Thanks alot.

  • @cascossi809
    @cascossi8093 жыл бұрын

    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. 😇

  • @amitpawar1677
    @amitpawar16772 жыл бұрын

    Thanks for such simple explanation. Great job Nana...

  • @ashafir20
    @ashafir203 жыл бұрын

    best development /devops youtube channel ever, great content by Nana!

  • @bapisahoo9233
    @bapisahoo92333 жыл бұрын

    Great Job ! Explained very clearly. Waiting for the next video on StatefulSet configuration file. Thank u..

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    You're welcome Bapi. 😇

  • @ezehemeka7833
    @ezehemeka78333 ай бұрын

    I appreciate your efforts in explaining these concepts in your videos. Thanks for everything you do Nana, 1m subs in a bit.

  • @MrVineet09
    @MrVineet093 жыл бұрын

    Thank you very much, finally able to understand what I was looking for..

  • @prateekdwivedi2911
    @prateekdwivedi29114 жыл бұрын

    Thanks a ton .... These videos are super helpful... Please keep on making videos..

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thanks, will keep creating quality videos 💪🏼🤗

  • @rohitvishwakarma2871
    @rohitvishwakarma28712 жыл бұрын

    You're the best! Subscribed

  • @56YTFGFH4
    @56YTFGFH43 жыл бұрын

    Wow. So much work and detailing in explaining things. Thanks for this. Very helpful.

  • @ajaye6612
    @ajaye66123 жыл бұрын

    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. 😇

  • @Farrukhw
    @Farrukhw3 жыл бұрын

    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?

  • @koorshashirazi2037
    @koorshashirazi20373 жыл бұрын

    Completely comprehensive and useful. thank you.

  • @gv.ramana
    @gv.ramana3 жыл бұрын

    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. 😇

  • @iammrchetan
    @iammrchetan3 жыл бұрын

    Nice Video with good explanation! Keep doing good work, Nana! Loved this!

  • @leandromuniz6295
    @leandromuniz62953 жыл бұрын

    Easy to understand and very detailed information. Thanks!

  • @sabburaj
    @sabburaj3 жыл бұрын

    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 🙏

  • @pravataranjandashfse2677
    @pravataranjandashfse26773 жыл бұрын

    Such a clear and detailed explanation in so short period of time. Awesome👍

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thanks Pravata, happy you liked my video! :)

  • @ZeusCanonliil
    @ZeusCanonliil3 жыл бұрын

    awesome explanations, thanks for this, I'm learning so much from you 🙏

  • @BharatSingh-hf1yt
    @BharatSingh-hf1yt2 жыл бұрын

    best channel for kubernetes thanks

  • @Andraite
    @Andraite2 жыл бұрын

    Very well explained in simple way. Best video.

  • @andreaselvers3201
    @andreaselvers32012 жыл бұрын

    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
    @tibbydudeza3 жыл бұрын

    Thanks for giving an clear explanation and using slides and not whiteboard scribbles.

  • @analyticsjassal1720
    @analyticsjassal17203 жыл бұрын

    Thanks for the efforts. Nicely and crisply explained.

  • @MrDevo
    @MrDevo9 ай бұрын

    Thank you for the amazing explanation!

  • @gganesh9
    @gganesh92 жыл бұрын

    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.

  • @JeffSmathers
    @JeffSmathers3 жыл бұрын

    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?

  • @thiagarajlakshmanan2449
    @thiagarajlakshmanan24492 жыл бұрын

    You have answers for my each question, as a video! Thank you...Subscribed!!!

  • @2006akkgmail
    @2006akkgmail3 жыл бұрын

    Very well explained. Thank you.

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    You're welcome. Glad you liked it. 😇

  • @RamanKathpalia
    @RamanKathpalia4 жыл бұрын

    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

  • @jasmineverdant
    @jasmineverdant4 жыл бұрын

    Great Job. excellently explained. you're a gem

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thanks a lot!

  • @sofianeel9680
    @sofianeel96803 жыл бұрын

    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.

  • @soulfulman4834
    @soulfulman48342 жыл бұрын

    Mind blowing explanation of each topic which I have learn for K8s... Thanks a lot Nana & love❤️ from India 🇮🇳🇮🇳

  • @farrukhahmedsid
    @farrukhahmedsid3 жыл бұрын

    Very well explained.. Thanks

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thank you Farrukh. Please don't forget to subscribe and share. 😇

  • @DeepakGC
    @DeepakGC2 жыл бұрын

    Thank you!! you made it super easy to understand the concept, subscribed :)

  • @ayanSaha13291
    @ayanSaha13291 Жыл бұрын

    Excellent video. Thanks for helping us understanding the topic.

  • @Amit-qv8cp
    @Amit-qv8cp15 күн бұрын

    Got it, the different between deployment and statefulset. thanks

  • @keerthisumanth8106
    @keerthisumanth81064 жыл бұрын

    Brilliant and just wonderful waiting for next video

  • @TechWorldwithNana

    @TechWorldwithNana

    4 жыл бұрын

    Thanks a lot! Next video coming soon :)

  • @bzqr2k
    @bzqr2k4 жыл бұрын

    Hi Nana! Great topic and explanation! Thank Youuuu!

  • @TechWorldwithNana

    @TechWorldwithNana

    4 жыл бұрын

    You're welcome Mauricio, glad you liked it :)

  • @vishnuanil7691
    @vishnuanil76912 жыл бұрын

    That was a really really nice explanation that I could not even find from the Kube documents. thanks

  • @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¡¡

  • @akshayhiremath4584
    @akshayhiremath45843 жыл бұрын

    Good overview use case of StatefulSets ! 👍🏽

  • @user-xb5dh6yk5g
    @user-xb5dh6yk5g7 ай бұрын

    very comprehensive video and great slides

  • @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. 👍

  • @thomash.8297
    @thomash.82974 жыл бұрын

    Thanks, perfect explained.

  • @TechWorldwithNana

    @TechWorldwithNana

    4 жыл бұрын

    Thank you Tom, glad you liked my way of explaining!

  • @mohammedsuhailbasha4860
    @mohammedsuhailbasha48604 жыл бұрын

    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

    4 жыл бұрын

    Thanks Mohammed! As mentioned in the video I will make a more practical video about StatefulSets

  • @Sami-bc9iv
    @Sami-bc9iv3 жыл бұрын

    Good job!!!. Excellent work!!!

  • @palagirinagarjunareddy725
    @palagirinagarjunareddy7253 жыл бұрын

    Very clear nd nicely explained.. thanks for your efforts🙏

  • @nalcow
    @nalcow Жыл бұрын

    excellent Lectures, Very useful ! thank you

  • @abhijitzanak
    @abhijitzanak4 жыл бұрын

    nicely explained as always, thanks.

  • @TechWorldwithNana

    @TechWorldwithNana

    4 жыл бұрын

    Thanks, glad you think so! :)

  • @jhonnySonnny
    @jhonnySonnny3 жыл бұрын

    Wow thanks for sharing such a great video here!!!

  • @rbascu84
    @rbascu843 жыл бұрын

    as always, very good explicacoines. Thank you

  • @AmolGautam
    @AmolGautam Жыл бұрын

    Thank you. This is really helpful

  • @na111111
    @na1111114 жыл бұрын

    very helpful. Thank you and keep making these short videos :)

  • @TechWorldwithNana

    @TechWorldwithNana

    4 жыл бұрын

    Hi Raghu, I will :)

  • @mayureshpatilvlogs
    @mayureshpatilvlogs4 жыл бұрын

    thanks for such easy explanation. keep it up 👍

  • @TechWorldwithNana

    @TechWorldwithNana

    4 жыл бұрын

    Hi Mayuresh, glad my explanation was helpful and easy to follow :)

  • @babug6070
    @babug60703 жыл бұрын

    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?.

  • @ajayjeetsharma
    @ajayjeetsharma3 жыл бұрын

    Great work Nana!!

  • @pallavkan
    @pallavkan4 жыл бұрын

    Superb!!

  • @midhunk7984
    @midhunk79843 жыл бұрын

    Nice one ! clear explanation.

  • @yogireddy8129
    @yogireddy81292 жыл бұрын

    great explanation many thanks ...

  • @MohamedTalaat-vx6tw
    @MohamedTalaat-vx6tw19 күн бұрын

    Thank u for great efforts

  • @chiragprajapati9316
    @chiragprajapati93162 жыл бұрын

    awsome video so many things learning from this.

  • @andreicorpodeanu5579
    @andreicorpodeanu55794 жыл бұрын

    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

    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

    @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!

  • @himamanikantavaskuri1504
    @himamanikantavaskuri15043 жыл бұрын

    Great Explanations

  • @syedibrahim-il2gj
    @syedibrahim-il2gj3 жыл бұрын

    Very Well Explained

  • @shubhamkumar4672
    @shubhamkumar46723 жыл бұрын

    Nicely explained, appreciate your efforts :-)

  • @yassersaied7279
    @yassersaied72792 жыл бұрын

    Amazing as usual

  • @doviche
    @doviche3 жыл бұрын

    I got to say only one word: Great!

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thank you 🙏🙂

  • @riyashussain7406
    @riyashussain74063 жыл бұрын

    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?

  • @KresnaPermana
    @KresnaPermana3 жыл бұрын

    Wow, You're good at explaining new subscriber added!

  • @user-nh1yz5vo4o
    @user-nh1yz5vo4o3 жыл бұрын

    The best kuberneres lecturer

  • @ankitgiri6874
    @ankitgiri6874 Жыл бұрын

    amazing session Thanks

  • @roshansharma3438
    @roshansharma34383 жыл бұрын

    Hi Nana loved the way you explain. Could you please share us the next video with some real-time examples 🙂

  • @RenatoMatos79
    @RenatoMatos793 жыл бұрын

    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

    @TechWorldwithNana

    3 жыл бұрын

    Thank you Renato :) Appreciate your comment!

  • @julionicodantas
    @julionicodantas5 ай бұрын

    You are the best!

  • @arvindsinha1566
    @arvindsinha1566 Жыл бұрын

    Thanks for explanation

  • @user-yi8bd3kh1v
    @user-yi8bd3kh1v Жыл бұрын

    very good video, Thanks

  • @viswatejaforu
    @viswatejaforu2 жыл бұрын

    Nice explanation

  • @a143r
    @a143r2 жыл бұрын

    I like the presentation Animation

  • @suryapratap3622
    @suryapratap362211 ай бұрын

    awesome video

  • @MrChinook1991
    @MrChinook19913 жыл бұрын

    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?

  • @juancamilo1370
    @juancamilo13703 жыл бұрын

    muy claro, muchas gracias!

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    De nada Juan 😇

  • @surekhadani8487
    @surekhadani84877 ай бұрын

    Just WOW !!