Kubernetes Node Selector vs Node Affinity vs Pod Affinity vs Tains & Tolerations

  Рет қаралды 30,624

Anton Putra

Anton Putra

Күн бұрын

🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
► Located in San Francisco Bay Area, CA (US citizen)
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
► LinkedIn: / anton-putra
► Twitter/X: / antonvputra
► GitHub: github.com/antonputra
► Email: me@antonputra.com
▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬
👉 [Playlist] Kubernetes Tutorials: • Kubernetes Tutorials
👉 [Playlist] Terraform Tutorials: • Terraform Tutorials fo...
👉 [Playlist] Network Tutorials: • Network Tutorials
👉 [Playlist] Apache Kafka Tutorials: • Apache Kafka Tutorials
👉 [Playlist] Performance Benchmarks: • Performance Benchmarks
👉 [Playlist] Database Tutorials: • Database Tutorials
▬▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬▬
0:00 Intro
2:16 Kubernetes Node Selector
3:27 Kubernetes Node Affinity
7:06 Kubernetes Pod Anti-Affinity
8:57 Kubernetes Pod Affinity
9:44 Kubernetes Taints and Tolerations
▬▬▬▬▬▬▬ Source Code 📚 ▬▬▬▬▬▬▬
► GitHub: github.com/antonputra/tutoria...
#kubernetes #devops #cloud

Пікірлер: 61
@AntonPutra
@AntonPutra 11 ай бұрын
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
@ankitrawat721
@ankitrawat721 Жыл бұрын
I am working with Kubernetes for last 4 years. That is a very clean explanation. Nice video! I would request you to create a specific video on HPA with request based.
@AntonPutra
@AntonPutra Жыл бұрын
Thank you! Will do
@prashlovessamosa
@prashlovessamosa 11 ай бұрын
These k8s videos are awesome let them coming. It's so easy understand through animation too much effort to make these very grateful to you for making these lectures.
@AntonPutra
@AntonPutra 11 ай бұрын
Thank you! Yes, it takes some time :)
@armalex9698
@armalex9698 25 күн бұрын
🎉 Wich tool did u use for that content? It’s amazing 🎉🎉
@undetermened
@undetermened Жыл бұрын
Extremely useful topic, thanks for great content again, Anton!
@AntonPutra
@AntonPutra Жыл бұрын
Thanks!
@user-pc1pm1vb7p
@user-pc1pm1vb7p 2 ай бұрын
What would be a condition when 2 both with similar configuration should always schedule in 2 diff nodes ?
@undetermened
@undetermened 2 ай бұрын
@@user-pc1pm1vb7p if you form your question properly, Anton, me or gpt could answer you :)
@user-ij3od1xs2s
@user-ij3od1xs2s Жыл бұрын
Very good explanation Thank you Anton
@AntonPutra
@AntonPutra Жыл бұрын
Thank you!
@Babbili
@Babbili Жыл бұрын
i remember some hard days when i started in DevOps, tainting some nodes for ML, then getting not enough nodes error, i fix and then a lead dev manually change from Kubernetes dashboard, until i used ArgoCD with selfHeal then RBAC so he cannot change after that the cluster became stable
@AntonPutra
@AntonPutra Жыл бұрын
It's sometimes hard in large teams to prevent manual changes, but as you said, everyone should be using GitOps as much as possible.
@ajaychaudhari8548
@ajaychaudhari8548 11 ай бұрын
Very good explanation, Thank you Anton
@AntonPutra
@AntonPutra 11 ай бұрын
Thanks!
@nero4581
@nero4581 11 ай бұрын
Hi, Anton, again, really interesting and REALLY well presented. For someone like me, who's only dealt with Minikube locally (so that means only one Node), it is something new, but, nevertheless, great knowledge to have for the future when I will deploy in production. As always, thank you!
@AntonPutra
@AntonPutra 11 ай бұрын
Thank you! Sometimes, it's helpful to run multiple nodes even with Minikube. This could be useful, for example, to test how an app behaves if a node goes down (for example if you want to run it on spot). minikube start --nodes 2
@nero4581
@nero4581 11 ай бұрын
@@AntonPutra Much thanks for the reply, Anton! Wasn't even aware of the --nodes flag for minikube, will be sure to try it out! And can only agree with you, really useful to test behavior of when a node goes down and even architect for when you will be deploying in production on multiple nodes.
@user-jy5nh9zh4g
@user-jy5nh9zh4g Ай бұрын
Your explanation is really PRO ! would be great if you can create series on App Tracing and Monitoring on K8s like ELK stack for APM for app tracing
@AntonPutra
@AntonPutra Ай бұрын
thanks, i'll see what i can do
@bipinkumar-db1ip
@bipinkumar-db1ip 11 ай бұрын
Thanks @AntonPutra for the micro detailed video. We are currently facing some issue related to pod scheduling in eks this video provided some insights . We have a monitoring demonset which took normally ~1min to 1.5 min to spin up and ready. But some of my application pods are in ready state in the same node before the demon set pod is ready because of faster startup time.Our monitoring tool will not inject agent if the pod is ready before the demonset. Could you please suggest taint or pod affinity which one is the best approach. Other than the affinity and taint is there any other helpful suggestions please provide that as well . Thanks in advance...
@AntonPutra
@AntonPutra 11 ай бұрын
Can you run your monitoring tool as a sidecar to daemonset?
@prashanthm5185
@prashanthm5185 Жыл бұрын
Nicely explained 👏
@AntonPutra
@AntonPutra Жыл бұрын
Thank you!
@jhonatantechh
@jhonatantechh 15 күн бұрын
Hey there ! Nice video ! Relly nice explanation, can I ask you with tool did you use to make those diagram animation ?
@AntonPutra
@AntonPutra 15 күн бұрын
Sure Adobe
@Sid-sl3xk
@Sid-sl3xk 10 ай бұрын
Great Videos
@AntonPutra
@AntonPutra 10 ай бұрын
Thank you Sid!
@agun21st
@agun21st 11 ай бұрын
very informative video.
@AntonPutra
@AntonPutra 11 ай бұрын
Thank you
@RABWA333
@RABWA333 9 ай бұрын
Thanks 🙏 a lot , great job 👏
@AntonPutra
@AntonPutra 8 ай бұрын
my pleasure!
@user-pc1pm1vb7p
@user-pc1pm1vb7p 2 ай бұрын
bro, What would be a condition when 2 both with similar configuration should always schedule in 2 diff nodes ?
@user-pc1pm1vb7p
@user-pc1pm1vb7p 2 ай бұрын
What would be a condition when 2 both with similar configuration should always schedule in 2 diff nodes ?
@AntonPutra
@AntonPutra 2 ай бұрын
use podantiaffinity - kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#more-practical-use-cases
@danclarkeuk
@danclarkeuk 5 ай бұрын
Great video! Can I ask what software you use for the diagrams and animations?
@AntonPutra
@AntonPutra 5 ай бұрын
Thanks, adobe stack
@danclarkeuk
@danclarkeuk 5 ай бұрын
@@AntonPutra Ah brilliant - I already have the Adobe all app suite. I probably haven't used more than half the apps though! 😂 Is the animation done with Adobe Animate?
@nishitkumar7650
@nishitkumar7650 Жыл бұрын
Hey anton can you make video on when we deploy pods ko gke cluster where does the container log (/var/logs/) get stored , what happens in backend if we don't mount it with persistence volume.
@AntonPutra
@AntonPutra Жыл бұрын
In GKE, EKS and even AKS you just need to update your logger to write to stdout or stderr. In GCP you'll get your logs in stackdriver, you don't need to mount anything.
@nishitkumar7650
@nishitkumar7650 11 ай бұрын
@@AntonPutra so it will not write anything on my gke disk.
@AntonPutra
@AntonPutra 11 ай бұрын
@@nishitkumar7650 no just stout
@YordisPrieto
@YordisPrieto Жыл бұрын
First 😎
@George-mk7lp
@George-mk7lp 11 ай бұрын
hey Anton are you working with Azure or planning to make any videos in the future ? Thanks for what you doing as always
@AntonPutra
@AntonPutra 11 ай бұрын
Yes, soon
@manishalankala1622
@manishalankala1622 11 ай бұрын
Which tools do you use for video editing for your channel
@AntonPutra
@AntonPutra 11 ай бұрын
Adobe suite
@xichen2677
@xichen2677 9 ай бұрын
The diagram at 0:50 is confusing, the pod requests 2 CPU and 4Gi memory, why node-01 which has 6CPU and 16Gi (more than pod's request) be considered not enough memory? Same question also for node-03 which has 8CPUs why it is considered not enough CPU?
@AntonPutra
@AntonPutra 9 ай бұрын
Well, that's the whole point of Kubernetes: to abstract away a data center. In the case of the cloud, we typically use large instance types to reduce wasted resources since we also need to run monitoring and logging agents on each node. So, we use large instances and schedule multiple pods on a single virtual machine.
@soumyamishra8734
@soumyamishra8734 Жыл бұрын
Thank you so much ,Can you please share kubernetes scenario based questions
@AntonPutra
@AntonPutra 11 ай бұрын
Welcome, you mean interview questions?
@soumyamishra8734
@soumyamishra8734 11 ай бұрын
@@AntonPutra yes Anton
@soumyamishra8734
@soumyamishra8734 11 ай бұрын
Please share the entire Pod Life cycle
@AntonPutra
@AntonPutra 11 ай бұрын
@@soumyamishra8734 Got it, will do
@nishitkumar7650
@nishitkumar7650 Жыл бұрын
Why don't you make a course to deploy pods on gke with best practices and how to do container logs management , how to do best pods monitoring in gke , advance concepts like how to deploy microservices in gke.
@AntonPutra
@AntonPutra Жыл бұрын
Thanks, I'll think about it.
@lukaszgmail
@lukaszgmail 11 ай бұрын
First minute: How does the score is resolved?
@AntonPutra
@AntonPutra 11 ай бұрын
You can read more about scheduler here - kubernetes.io/docs/concepts/scheduling-eviction/scheduler-perf-tuning/
@rahaan365
@rahaan365 Жыл бұрын
I didn't yet watch the video, but kudos to someone dare to bend it.
@AntonPutra
@AntonPutra Жыл бұрын
Thanks:)
Most Common Kubernetes Deployment Strategies (Examples & Code)
20:06
How to debug Kubernetes? (Deployments, Services & Ingress)
18:45
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 20 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 77 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
Kubernetes NodePort vs LoadBalancer vs Ingress
6:27
Anton Putra
Рет қаралды 62 М.
Kubernetes Ingress networking
5:57
Project Calico
Рет қаралды 49 М.
Crowdstruck (Windows Outage) - Computerphile
14:42
Computerphile
Рет қаралды 118 М.
Harness the Power of Kubernetes with Pod Disruption Budgets
14:15
Mischa van den Burg
Рет қаралды 779
Kubernetes Ingress Explained (2 Types)
8:54
Anton Putra
Рет қаралды 32 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 253 М.
How NVIDIA just beat every other tech company
9:20
Mrwhosetheboss
Рет қаралды 1,3 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,8 МЛН
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 944 М.
Сколько реально стоит ПК Величайшего?
0:37
Что не так с раскладушками? #samsung #fold
0:42
Не шарю!
Рет қаралды 216 М.
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 2,8 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 4,8 МЛН