StatefulSets & Headless Services Demo with MySQL DB | Sample Todo Application with MySQL DB

preview_player
Показать описание
StatefulSets & Headless Services Demo with MySQL DB | Todo Application

- Learn why StatefulSets are needed in Kubernetes
- Deployments vs StatefulSets
- Headless Services and their need with StatefulSets
- Stateless vs Stateful Apps
- Headless vs ClusterIP Service
- Volumes, PV, PVC and Storage Class
- MySQL StatefulSet through Helm Charts

Timestamps
00:00 - Start
02:50 - Sample Todo Application
03:34 - Pod to Pod Communication & Pod DNS(A/AAAA Records)
15:00 - DNS Resolution through CodeDNS
18:27 - Using Services
19:59 - Need for Stateful Applications like DBs
23:50 - Headless Services
34:58 - Stateless vs Stateful Applications
39:22 - Statefulsets
40:31 - Data Replication Challenges for DBs
47:00 - Data Replication in Deployment vs StatefulSets
48:10 - Sticky Identities in StatefulSets
52:00 - Using Headless Services with StatefulSets
57:20 - Stable & Persistent Storage in StatefulSets
01:06:11 - Volumes, PV, PVC, Storage Class, emptyDir, hostPath
01:23:11 - PV Access Modes
01:26:00 - PV Reclaim Policy
01:29:00 - VolumeClaimTemplates n StatefulSets
01:31:41 - Demo

For DevOps training, connect with us on

Join this channel to get access to perks:
Комментарии
Автор

This one is truly a masterpiece. Every question that was coming to my mind was getting answered in the very next moment 👍

syedkausarali
Автор

The video is Masterpiece....nicely craved and concepts, usecases are well presented....thanks for your efforts.... appreciate your knowledge.

shreenathn
Автор

this was my painpoint and u made it so beautifull im in love with this keep doing such videos bro

mrcharm
Автор

I just want you to know that you are a legend

alejandrocoronado
Автор

Thanks for making this video, it was really super and got lot of idea from it and discussed about this concept within myself. Can I consider the headless service as client side load balancing and cluster IP type service as server side load balancing? I can understand if we using the deployment for database then it will not possible to designate one of the pod is master and the remaining pod is reader due to dynamic pod name and load balancing things. But can we address the data inconsistency issue by using PVC and PV in deployment? why need separate storage for each pod which is managed by stateful set controller? I am expecting your valuable answer. I hope your answer will be clear this doubts.

marieswaran
Автор

Everything well explained, but I have a doubt that why each pod in a statefulset is attached to a separate pv, why we can't use the same pv for all the pods just like in a deployment

prachitoshpradhan
Автор

Please make and upload videos on Kubernetes networking part like this end to end. How the calico plugin play a role in k8s. How the pods communication happens using this calico plugin these things we need. Please make video on this and upload.

mohammedsuhailbasha
Автор

Awesome 👍... Really needed this demo to understand it clearly. Please if possible record a video where we can see exposing frontend application using AWS ALB Ingress Controller...

interestingdatascience
Автор

As you are requesting from clusterIP service for read only requests but it can do write request as well. How it will take decision that it is read or write request?

ganeshpawar
Автор

brother bring a complete series on kubernetes networking

shamstabrez
Автор

I finished the whole video, the explanation was very clear, thank you very much.
I have a question:
how can I make dynamic URL, use a single URL to write and read at the same time to have a single app instead of two apps

najibiziki
Автор

Nice. w.r.t headless service What will happen when the master/pod-0 dies.
In that case will the client request fail for the request master/pod-0.svc-headless?

premierde
Автор

Sir, kindly make video on grafana and Prometheus project based video.

awssoorinje
Автор

I built an application based on react js express js and mongodb, i containerized the app with docker and deploy it with k8s .
it's a simple todo app, the basics, everything works fine.
I have studied deployment for mongodb, I want to change it to statufelset.

I have no idea how to change conection url between express and mongodb .

I saw your other video, the difference between hadless service. You mentioned that I have to have a hadless to write and a service to read, I don't know how to implement both at the same time.

I'm going to see this video and the demo, if I still have this problem, I wonder if you can help me.

and thank you for your video, I saw one, and you explain are great

najibiziki
Автор

please make videos on crds, cr, operators and controllers

prakritimandal
Автор

you are doing 2 deployments primary and secondary, then how can we make sure the users have single url for the application.?

mahender
Автор

Video is very informative.It talks about various aspects of statefulset but I feel it's too long

dipi
Автор

In short, Can we say Statefulset can be used where we need static & ordered pod names and a one-on-one relation with PVs ??

vinaykumarmatam
Автор

Very wonderful explaination Bro. Thanks lot. I have completed the full video. I have one dout here. The statefulset helm chart will create two stateful sets here. Is it possible to replicate data from different statefulset? i.e is it possible that statefulset-secondary-0 can able to replicate data from statefulset-primary-0. Becoz both are different statefulset na.

mohammedsuhailbasha
Автор

Can you posible to create one video to create a Mysql microservice in Kubernetes and access this SQL using SQL workbench, or any solution I need to look?.

rohanekar
welcome to shbcf.ru