Uploaded June 2020 | Updated November 2026, 3 hours ago
StatefulSet Kubernetes | Understand what StatefulSet in Kubernetes is and how it works
Using StatefulSet in practice 🙅🏼♀️ ► youtu.be/JGtJj_nAA2s
Kubernetes Operator explained (manager for your stateful application 🚀) ► youtu.be/ha3LjlD6g7g
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 ► youtu.be/EQNO_kM96Mo
Kubernetes Components explained ► youtube.com/watch?v=Krpb44XR0bk&t=364s
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.
StatefulSet Kubernetes | Understand what StatefulSet in Kubernetes is and how it works
Using StatefulSet in practice 🙅🏼♀️ ► youtu.be/JGtJj_nAA2s
Kubernetes Operator explained (manager for your stateful application 🚀) ► youtu.be/ha3LjlD6g7g
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 ► youtu.be/EQNO_kM96Mo
Kubernetes Components explained ► youtube.com/watch?v=Krpb44XR0bk&t=364s
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.
![Docker Crash Course for Absolute Beginners [NEW]
► Grab your DevOps Roadmap PDF here: https://bit.ly/3GItMY1
Docker Tutorial for Beginners that teaches you everything you need to get started
💙 Full Docker course ► https://youtu.be/3c-iBn73dDE
💚 Docker in complete DevOps process ► https://bit.ly/42ZMSiR
💛 Connect on Instagram ► https://bit.ly/2F3LXYJ
💛 Connect on LinkedIn ► https://bit.ly/3hWOLVT
#docker #dockertutorial #techworldwithnana
► This video is sponsored by Nethopper 🙌🏼
► Learn more about Nethopper KAOPS here: https://www.nethopper.io/
Learn the basic building blocks of Docker in an easy and understandable way.
By the end of this Docker tutorial, you will have a deep understanding of the concepts and a great overall big picture of how Docker is used in the whole software development process.
The course is a mix of animated theoretic explanation and hands-on demos to follow along, so you get your first hands-on experience with Docker.
🔗 Links
► Git Repo for this tutorial: https://gitlab.com/nanuchi/docker-in-1-hour
► Download and install Docker: https://docs.docker.com/get-docker/
▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
0:00 - Intro and Course Overview
02:54 - What is Docker?
03:51 - What problems Docker solves in development and deployment process
11:38 - Virtual Machine vs Docker
17:19 - Install Docker
21:36 - Docker Images vs Containers
26:32 - Docker Registries
29:38 - Docker Image Versions
32:02 - Main Docker Commands - Pull and Run Docker containers
39:06 - Port Binding
42:50 - Start and Stop containers
46:54 - Private Docker Registries
48:11 - Registry vs Repository
49:09 - Dockerfile - Dockerize Node.js app
58:30 - Build Image
1:02:39 - Docker UI Client
1:03:39 - Overview: Docker in complete software development lifecycle
1:06:38 - Where to go from here
▬▬▬▬▬▬ Want to learn more? 🚀 ▬▬▬▬▬▬
Full Python course ► https://youtu.be/t8pPdKYpowI
Full Docker course ► https://youtu.be/3c-iBn73dDE
Full K8s course ► https://youtu.be/X48VuDVv0do
DevOps Tools explained ► https://bit.ly/2W9UEq6
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
INSTAGRAM ► https://bit.ly/2F3LXYJ
TWITTER ► https://bit.ly/3i54PUB
LINKEDIN ► https://bit.ly/3hWOLVT Docker Crash Course for Absolute Beginners [NEW]](https://i.ytimg.com/vi/pg19Z8LL06w/mqdefault.jpg)



![GitLab CI CD Tutorial for Beginners [Crash Course]
Learn GitLab CI/CD by building a complete CICD pipeline for a python demo project | with Docker
🧡 GitLab Course with Kubernetes, Microservices, Multi-Stage: https://bit.ly/3MqmVlr
💚 Become a DevOps Engineer - 6-month program: https://bit.ly/3BQ6j1v
#gitlab #gitlabcicd #techworldwithnana
► This course is sponsored by Twingate 🙌🏼, a modern alternative to VPN
► If you want to try it, check out their special offer for my viewers by using the code NANA: https://lp.twingate.com/NANA
▬▬▬▬▬▬ What you’ll learn in 1 Hour ✅ ▬▬▬▬▬▬
► What GitLab CI/CD is
► GitLab compared to other CI/CD platforms
► Overview of GitLab Architecture
► Build a full GitLab CI/CD pipeline for a python app that
- executes tests,
- builds a Docker image,
- pushes to a private Docker repository and
- deploys the app to a remote server on DigitalOcean
► Learn GitLab Basic Concepts on the way:
- Pipeline, Jobs,
- Stages
- GitLab Runners and Executors
- Variables (Variable and File Type)
- Docker in Docker
▬▬▬▬▬▬ R E F E R E N C E S 🔗▬▬▬▬▬▬
► Git repo we build the CI/CD pipeline for: https://gitlab.com/nanuchi/gitlab-cicd-crash-course
► Original forked python demo app: https://github.com/benc-uk/python-demoapp
► Docker in Docker Image: https://hub.docker.com/_/docker
► Docker in Docker Gitlab Docs: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker
► Install Python and Pip: https://www.python.org/downloads/
▬▬▬▬▬▬ Course Pre-Requisites ▬▬▬▬▬▬
💡 Docker - learn here: ► https://youtu.be/3c-iBn73dDE
💡 YAML - learn here: ► https://youtu.be/1uFVr15xDGg
💡 Basics of Git
▬▬▬▬▬▬ Pre-Requisites if you want to follow the demo ▬▬▬▬▬▬
⌨️ GitLab Account
⌨️ DockerHub Account - we push and pull docker image from Docker Hub (https://hub.docker.com/)
⌨️ If you want to start the app locally: Install Python3, Pip and make
▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:00 - Intro and Course Overview
01:25 - What is GitLab CI/CD?
01:59 - What is CI/CD in simple words
03:11 - GitLab in comparison to other CI/CD platforms
04:28 - GitLab Architecture - How GitLab works
06:16 - Overview of the demo app (run locally)
12:47 - Pipeline Configuration File (.gitlab-ci.yml)
14:09 - Run Tests
26:27 - Build and Push Docker Image
27:43 - Variables for Login Credentials
32:33 - Write Pipeline Configuration
38:56 - Docker in Docker
43:23 - Execute Pipeline
44:20 - Define Stages
47:19 - Prepare Deployment Server
47:44 - Create Ubuntu server on DigitalOcean
54:44 - Deploy Application
1:06:22 - Validate Application Runs Successfully
1:07:30 - Delete server on DO
1:07:49 - Dive Deeper into GitLab CI/CD
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
INSTAGRAM ► https://bit.ly/2F3LXYJ
TWITTER ► https://bit.ly/3i54PUB
LINKEDIN ► https://bit.ly/3hWOLVT GitLab CI CD Tutorial for Beginners [Crash Course]](https://i.ytimg.com/vi/qP8kir2GUgo/mqdefault.jpg)




![Consul Service Mesh Tutorial for Beginners [Crash Course]
Complete Service Mesh and HashiCorp Consul tutorial - Real life demo of setting up Consul in Kubernetes multi cluster, multi cloud with failover 🚀
💜 Complete DevSecOps Bootcamp: https://bit.ly/3tToJxt
💙 Complete DevOps Bootcamp: https://bit.ly/471xVhQ
🧡 GitLab Course with K8s, Microservices, Multi-Stage: https://bit.ly/3QwWRbi
#servicemesh #hashicorp #techworldwithnana
HashiCorp Consul is a service mesh solution. A service mesh is a dedicated infrastructure layer that controls service-to-service communication in a microservices architecture. It manages the routing of service requests to other services, performs load balancing, encrypts data, and discovers other services.
▬▬▬▬▬▬ R E F E R E N C E S 🔗▬▬▬▬▬▬
► Git repo: https://gitlab.com/twn-youtube/consul-crash-course
► Helm Chart Reference: https://developer.hashicorp.com/consul/docs/k8s/helm
► Required Ports for Consul: https://developer.hashicorp.com/consul/docs/install/ports
▬▬▬▬▬▬ Course Pre-Requisites ▬▬▬▬▬▬
💡 Kubernetes, Terraform, AWS
👉 Microservices explained: https://youtu.be/rv4LlmLmVWk
👉 Service Mesh explained: https://youtu.be/16fgzklcF7Y
👉 Istio Setup Demo: https://youtu.be/voAyroDb6xk
👉 Kubernetes Crash Course: https://youtu.be/s_o8dwzRlu4
▬▬▬▬▬▬ What you’ll learn in 2 Hours ✅ ▬▬▬▬▬▬
► What service mesh is, what problems it solves in microservices architecture
► How service mesh and Consul specifically works
► How Consul works in Kubernetes multi-cluster, hybrid environments with VMs
► Consul Architecture (Control Plane and Data Plane)
► Learn about
- Proxy containers
- Dynamic Service Discovery
- Health Checks and Fault Tolerance
► Learn about secure networking - creating a zero-trust network:
- Mutual TLS - mTLS
- Authenticated Communication
- Control Traffic with Service Intentions
► Hands-on demo 🧑🏽💻
- create 2 K8s clusters on 2 different cloud platforms
- deploy microservices application and Consul on it
- configure failover, so in case one service is unhealthy or unreachable it routes the traffic to the healthy service instance on the other cloud platform
▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:00 - Intro and Course Overview
01:24 - Why we need a service mesh?
08:49 - What is a Service Mesh? What is Consul?
09:52 - How it works without Consul - a K8s city
13:42 - How it works with Consul Service Mesh
20:12 - Secure Networking - How mTLS works
24:10 - Zero-Trust Network - Authentication and Communication Rules
26:29 - Observability
28:16 - Consul Architecture - Consul Servers
29:51 - Consul Architecture - Control Plane and Data Plane
31:06 - Consul in multi-cluster environment
33:47 - Consul in hybrid environment
37:46 - Consul Multi-Cluster Multi-Cloud DEMO
37:48 - Demo Overview
40:15 - Create K8s cluster on AWS EKS
52:14 - Deploy Microservices App on EKS
1:00:54 - Deploy Consul on EKS
1:23:50 - Configure Access Rules
1:28:16 - Create on connect to 2nd K8s cluster
1:32:28 - Deploy Consul and Microservices on LKE
1:36:28 - Connect the clusters - Add peer connection
1:42:18 - Configure failover to other cluster 🎉
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
INSTAGRAM ► https://bit.ly/2F3LXYJ
TWITTER ► https://bit.ly/3i54PUB
LINKEDIN ► https://bit.ly/3hWOLVT
Facebook group ► https://bit.ly/32UVSZP Consul Service Mesh Tutorial for Beginners [Crash Course]](https://i.ytimg.com/vi/s3I1kKKfjtQ/mqdefault.jpg)
![Kubernetes Crash Course for Absolute Beginners [NEW]
► Grab your free DevOps Roadmap: https://bit.ly/44xBHBD
💚 Become a DevOps Engineer - Complete DevOps Bootcamp: https://bit.ly/3MQgadT
📖 Written Kubernetes guide with all YAML and commands: https://bit.ly/4ztiSff
Hands-On Kubernetes Tutorial | Learn Kubernetes in 1 Hour - Kubernetes Course for Beginners
#kubernetes #k8s #techworldwithnana
Kubernetes, also known as K8s, is the most popular platform for container orchestration for automating deployment, scaling, and management of containerized applications.
In this complete Kubernetes Tutorial you will learn everything you need to know to get started with Kubernetes in 1 hour. You will learn all the core concepts, including the main Kubernetes components that you need to learn to work efficiently with Kubernetes. You will learn the syntax and contents of K8s configuration file , which is used to create and configure components in a Kubernetes cluster as well as how to setup a K8s cluster locally. Finally, I will show a hands-on demo project, where you will learn how to deploy a web application with its database into a local Kubernetes cluster. Its a simple but realistic application setup, which can also serve as a blueprint configuration for most common application setups.
▬▬▬▬▬▬ L I N K S 🔗▬▬▬▬▬▬
Git Repo to follow along the demos: ► https://gitlab.com/nanuchi/k8s-in-1-hour
Minikube Installation Guides: ► https://minikube.sigs.k8s.io/docs/start/
► This course is sponsored by Kasten 🙌🏼
► Free Kubernetes Backup and Migration - Download Kastens K10 and Get 10 nodes free forever: https://www.kasten.io/nana
▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
0:00 - Intro and Course Overview
1:44 - What is Kubernetes
4:33 - Kubernetes Architecture
9:29 - Node and Pod
8:58 - Main K8s Components
09:29 - Node & Pod
12:19 - Service & Ingress
14:31 - ConfigMap & Secret
17:52 - Volume
19:46 - Deployment & StatefulSet
26:28 - Kubernetes Configuration
32:39 - Minikube and Kubectl - Setup K8s cluster locally
41:17 - Complete Demo Project: Deploy WebApp with MongoDB
1:05:40 - Interacting with Kubernetes Cluster
1:11:03 - Congrats! You made it to the end 🎉
▬▬▬▬▬▬ Course Pre-Requisites ▬▬▬▬▬▬
Docker - learn here: ► https://youtu.be/3c-iBn73dDE
YAML - learn here: ► https://youtu.be/1uFVr15xDGg
▬▬▬▬▬▬ 💎 COURSE CONTENTS 💎 ▬▬▬▬▬▬
💎 Part 01: Introduction to Kubernetes
⌨️ What is Kubernetes
⌨️ Benefits of Kubernetes
⌨️ Kubernetes Architecture
💎 Part 02: Main Kubernetes Components
⌨️ Node & Pod
⌨️ Configuring Access with Service & Ingress
⌨️ External Configuration with ConfigMap & Secret
⌨️ Persisting Data with Volume
⌨️ Replication with Deployment & StatefulSet
💎 Part 03: Kubernetes Configuration
💎 Part 04: Setup Kubernetes cluster locally (Minikube and kubectl)
⌨️ What is Minikube
⌨️ What is Kubectl
⌨️ Install Minikube and Kubectl
💎 Part 05: Complete Demo Project: Deploy WebApp with MongoDB
⌨️ Demo Project Overview
⌨️ Create MongoDB ConfigMap
⌨️ Create MongoDB Secret
⌨️ Create MongoDB Deployment and Service
⌨️ Create WebApp Deployment and Service
⌨️ Pass Secret Data to MongoDB Deployment
⌨️ Pass Config Data to WebApp Deployment
⌨️ Configure External Access
⌨️ Deploy all K8s resources into Minikube cluster
⌨️ Interacting with Kubernetes Cluster
⌨️ Access Web Application in Browser
Difference to the previous 4-Hour K8s Course (https://youtu.be/X48VuDVv0do):
We made some updates for things that have changed in K8s, e.g. Minikube installation as well as a new demo project. Plus its a more compressed and shorter version with new animations. 😊
▬▬▬▬▬▬ Courses and Tutorials on Youtube 🎬 ▬▬▬▬▬▬
Full Python course ► https://youtu.be/t8pPdKYpowI
Full K8s course ► https://youtu.be/X48VuDVv0do
DevOps Tools, like Terraform, Prometheus ► https://bit.ly/2W9UEq6
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
INSTAGRAM ► https://bit.ly/2F3LXYJ
TWITTER ► https://bit.ly/3i54PUB
LINKEDIN ► https://bit.ly/3hWOLVT Kubernetes Crash Course for Absolute Beginners [NEW]](https://i.ytimg.com/vi/s_o8dwzRlu4/mqdefault.jpg)