Most Common Kubernetes Deployment Strategies (Examples & Code)

  Переглядів 26,427

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
1:35 Kubernetes Rolling Update Deployment
8:12 Kubernetes Recreate Strategy
10:19 Kubernetes Blue/Green Deployment
17:05 Kubernetes Canary Deployment
▬▬▬▬▬▬▬ Source Code 📚 ▬▬▬▬▬▬▬
► GitHub: github.com/antonputra/tutoria...
#kubernetes #devops #cloud

КОМЕНТАРІ: 65
@AntonPutra
@AntonPutra 8 місяців тому
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
@kunalkatdare9799
@kunalkatdare9799 Місяць тому
Thanks! Usually all videos show these deployment strategies conceptually, but you demonstrated how it's actually done! Big thanks!
@worldsofgalaxy
@worldsofgalaxy 2 місяці тому
Never seen before such clear explanation..Hatts off 👍👍
@AntonPutra
@AntonPutra 2 місяці тому
thanks a lot!
@victors9585
@victors9585 9 місяців тому
В нетленку!!!! 🔥🌟🔥🌟🔥🌟🔥Сердечно благодарю, Антон!!! 🙏❤🙏❤🙏❤🙏
@AntonPutra
@AntonPutra 9 місяців тому
spasibo=)
@dmitriydiachenko5648
@dmitriydiachenko5648 9 місяців тому
awesome structured video, thanks!
@AntonPutra
@AntonPutra 8 місяців тому
Thank you!
@hamidullahmuslih6301
@hamidullahmuslih6301 5 місяців тому
I love your explanations, very clear, awesome examples, and straight to the point. Thank you for your hard work!!
@AntonPutra
@AntonPutra 5 місяців тому
Thank you!
@sonadas7213
@sonadas7213 9 місяців тому
Thanks for sharing your knowledge, your explanation is up to the mark.
@AntonPutra
@AntonPutra 9 місяців тому
Thank you!
@GabrielPozo
@GabrielPozo 9 місяців тому
This is always an exciting topic, a fantastic video, thanks for sharing this quality of content!!!
@AntonPutra
@AntonPutra 9 місяців тому
thanks!
@ladioladeni
@ladioladeni 9 місяців тому
Anton my man! Quality contents as usual
@AntonPutra
@AntonPutra 9 місяців тому
Thank you!
@chasim1982
@chasim1982 9 місяців тому
Great Content, Thanks Sir, best IT teacher, learned a lot from You! ❤
@AntonPutra
@AntonPutra 9 місяців тому
Thank you❤
@wilmarmunoz6212
@wilmarmunoz6212 2 місяці тому
this is amazing, well explained!
@kayoutube690
@kayoutube690 9 місяців тому
you deserve lots of subscribers, thank you for sharing your knowledge.
@AntonPutra
@AntonPutra 9 місяців тому
Thanks :)
@Jaffarnefarious
@Jaffarnefarious 9 місяців тому
Thanks a lot Anton!
@AntonPutra
@AntonPutra 9 місяців тому
welcome!
@agun21st
@agun21st 9 місяців тому
Wow! this is really very help full K8s Deployment contents for when we call a service api and it show "Service Upstream problem". Sir your content is Unique on the k8s Tutorials. 💝
@cristobalzuluaga3065
@cristobalzuluaga3065 6 місяців тому
underrated channel
@user-qk4tx9jc4m
@user-qk4tx9jc4m 3 місяці тому
This is so well explained. You also added in examples that we can understand and apply in the real world. Great thanks for sharing such knowledge. subscribed.
@AntonPutra
@AntonPutra 3 місяці тому
thanks!
@joobis.b4568
@joobis.b4568 24 дні тому
great explanation! thankyou for doing this
@AntonPutra
@AntonPutra 24 дні тому
thanks!
@diegonayalazo
@diegonayalazo 5 місяців тому
Masterclass. Thanks Teacher!
@AntonPutra
@AntonPutra 5 місяців тому
Thank you!
@asezen77
@asezen77 4 місяці тому
Thank you very much for all your content.
@AntonPutra
@AntonPutra 4 місяці тому
my pleasure
@node_hodler
@node_hodler 7 місяців тому
otlicino, spasibo!
@AntonPutra
@AntonPutra 7 місяців тому
pojaluysta!
@softwareasafun
@softwareasafun 9 місяців тому
Thanks!
@AntonPutra
@AntonPutra 9 місяців тому
Thank you for support!
@bobbylelapin
@bobbylelapin 9 місяців тому
Love your content! What workstation you have? ARM MacBook laptop?
@AntonPutra
@AntonPutra 9 місяців тому
Thanks, yes Apple M1 Pro
@coveraver
@coveraver 9 місяців тому
Thank you! Can we balance traffic between services in the different namespaces by istio with flagger or something?
@AntonPutra
@AntonPutra 9 місяців тому
It's not common, what's your use case? I'll see if I can test istio with cross namespace virtual service
@coveraver
@coveraver 9 місяців тому
it would be great. There are three services in different namespaces stage, prod and green. I need to balance traffic between them. this can be done using ingress canary, but in this case, if the application crashes, it is not excluded from balancing and the user will receive either 200 or 503.
@asezen77
@asezen77 4 місяці тому
Thanks
@vipuldepolkar1189
@vipuldepolkar1189 8 місяців тому
Hi, i m fron india, and your teaching style is very good. I'm waiting for more videos for kubernates and terraform with azure
@AntonPutra
@AntonPutra 8 місяців тому
Thanks, Azure is coming soon =)
@Diego_UG
@Diego_UG 9 місяців тому
thanks for the video, question: what is a deployment strategy like when there are database migrations and how do you plan a rollback in this type of situation?
@AntonPutra
@AntonPutra 9 місяців тому
it's case by case but in general try to make migration backward compatible
@Diego_UG
@Diego_UG 9 місяців тому
Yes, although as the company grows and technology teams are formed, it becomes necessary to implement policies to ensure that these methodologies are followed by everyone on the team. So, in the case of databases, what would the policies be like? One policy could be: modifying a field in the database involves the following steps: 1) Create a new field with a different name, migrate, run a test; 2) Ensure new information is recorded in the new table, keeping new records in both tables, run a test; 3) Migrate data from one table to another, run a test; 4) Ensure new information only enters the row, run a test; 5) Delete the old table; 6) End.?
@kayoutube690
@kayoutube690 9 місяців тому
sir do you have video about kubernetes pod termination and sig term? how the pod gracefully terminated specially in prod?
@AntonPutra
@AntonPutra 9 місяців тому
I don't, but there is a hook that you can use and provide a custom command to execute before terminating the pod - kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
@Diego_UG
@Diego_UG 9 місяців тому
another question: how do we deploy a pod if its task or actions are executed internally and not by a request from a user?
@AntonPutra
@AntonPutra 9 місяців тому
do you mean like a data pipeline (kafka consumer/producer), you can automate and it's much harder and that's why most examples focused on request based apps :)
@yogithakakarla1716
@yogithakakarla1716 9 місяців тому
So, in canary deployment as we can forward 10% of traffic to new version. Can we make sure that only our team users can access this new version 10% . And end-users or customer should access 90% of old version. Is it possible
@AntonPutra
@AntonPutra 9 місяців тому
Sure, if you use native K8s objects, you would add an additional label to the deployment, for example, "deployment: canary". Then, you'd create another service that selects only canary pods, similar to the blue/green example. In Flagger, this is already implemented, and when you run a test, it will target only the canary.
@rahulchowdhury279
@rahulchowdhury279 9 місяців тому
plz make a DETAILED video on Cortex.
@rahulchowdhury279
@rahulchowdhury279 9 місяців тому
Love your videos. Both prometheus operator videos helped me out a lot
@AntonPutra
@AntonPutra 9 місяців тому
Sure will do!
@domw2391
@domw2391 9 місяців тому
I’m using argocd rollout but I don’t know what’s the main difference between native k8s deployment strategy and Argo d rollout
@AntonPutra
@AntonPutra 9 місяців тому
It uses default rolling-update unless you explicitly update it in the yaml
@rahulchowdhury279
@rahulchowdhury279 9 місяців тому
ArgoRollouts can do canary and bluegreen
@user-yt5tc9fz7s
@user-yt5tc9fz7s 6 місяців тому
I have a question, why are there 2 pods being created in 5:08 minute while the specified maxSurge is 25% from 4 replicas which should be 1
@AntonPutra
@AntonPutra 6 місяців тому
yes, 25% is 1 pod (4 total), but k8s terminated at the same time 1, so total 5
@kingschermann8161
@kingschermann8161 8 місяців тому
'Promo SM'
@CloudWithUgur
@CloudWithUgur 9 місяців тому
you should enable "join" so we can support you
@AntonPutra
@AntonPutra 9 місяців тому
Thanks will do =)
Kubernetes Canary Deployment (Manual vs Automated)
10:59
Anton Putra
Переглядів 8 тис.
How to debug Kubernetes? (Deployments, Services & Ingress)
18:45
Anton Putra
Переглядів 4 тис.
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 6 млн
Top 5 Most-Used Deployment Strategies
10:00
ByteByteGo
Переглядів 231 тис.
Kubernetes Ingress networking
5:57
Project Calico
Переглядів 44 тис.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Переглядів 200 тис.
Kubernetes Deployment strategies | Blue-Green Deployment | Argo rollout | ADAM
25:07
Learn DevOps Easy (Wezva-Technologies)
Переглядів 10 тис.
Портативная PS 5 🎮 #ps5 #expressly
0:22
ExpresSLY Shorts
Переглядів 181 тис.
Broken Flex Repair #technology #mobilerepair
0:50
ideal institute aligarh
Переглядів 1,4 млн
Игровой ноутбук за 100тр в МВИДЕО
0:58
KOLBIN REVIEW
Переглядів 361 тис.
Портативная PS 5 🎮 #ps5 #expressly
0:22
ExpresSLY Shorts
Переглядів 181 тис.