[ Kube 19 ] Performing Rolling Updates in Kubernetes

  Рет қаралды 10,322

Just me and Opensource

Just me and Opensource

5 жыл бұрын

In this video I will show you how you can update your deployments in your Kubernetes cluster using Rolling Updates concept. I have used microk8s for this demonstration.
Github: github.com/justmeandopensourc...
Thanks for watching my video. For any issues/questions/feedback, please drop me a comment and don't forget to subscribe to my channel.
If you wish to support me:
www.paypal.com/cgi-bin/webscr...
Thanks again.

Пікірлер: 73
@FreshersKosam
@FreshersKosam 4 жыл бұрын
Super Bro, I got a task in my office to check out the roll out strategy. this absolutely covers 200% requirement
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Siva, thanks for watching. Cheers.
@rohanrana5579
@rohanrana5579 2 жыл бұрын
Loved the different cases and scenarios Thanks venkat, keep up the good work.
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi Rohan, Thanks for watching.
@mini-sunnykifoodpanti1371
@mini-sunnykifoodpanti1371 3 жыл бұрын
wow super stuff! One shop stop for all concepts. It would have taken me a whole day to find & understand all this from official documentation. Thanks a lot Venkat :)
@justmeandopensource
@justmeandopensource 3 жыл бұрын
You are welcome. Thanks for watching.
@mathewkargarzadeh3158
@mathewkargarzadeh3158 4 жыл бұрын
Thanks. Very Good illustration between Recreate and Rolling update. Thank you again !!!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
You are welcome and thanks for watching this video. Cheers.
@janl.6568
@janl.6568 4 жыл бұрын
Love your videos !!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Jan, thanks for watching. Cheers.
@kalpsoni1873
@kalpsoni1873 4 жыл бұрын
Hey Dude.....Really superb video....Talks about all day to day challenges in production...Keep up the good work ...
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Kalp, thanks for watching.
@KloudEnrich_RameshkumarB
@KloudEnrich_RameshkumarB 4 жыл бұрын
Excellent Explanation bro
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Ram, thanks for watching.
@md.zakirhossain6210
@md.zakirhossain6210 4 жыл бұрын
Your videos are awesome. Thanks for your efforts.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Zakir, thanks for watching. Cheers.
@AshokReddy-er5gl
@AshokReddy-er5gl 5 жыл бұрын
You explained very well
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Thanks. Hope it helped.
@devanshuoza8561
@devanshuoza8561 4 жыл бұрын
Very helpful video. Thank you
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Devanshu, thanks for watching this video.
@mohammedsuhailbasha4860
@mohammedsuhailbasha4860 Жыл бұрын
Great explaination bro. Thanks lot. Please make and upload videos on Kubernetes calico networking deep dive, daemonset real world scenario and Kubernetes network policies.
@justmeandopensource
@justmeandopensource Жыл бұрын
Hi Mohammed, thanks for watching. I will add it to my list. Cheers.
@romantsyupryk3009
@romantsyupryk3009 4 жыл бұрын
Thanks so much for this tutorial.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Roman, thanks for watching.
@Praveen-xx7iy
@Praveen-xx7iy 4 жыл бұрын
Hi Venkat, I couldn't able to find video on blue green deployment. Previously I could able to see it.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Praveen, thanks for watching. Blue green deployment in my playlist? I don't think I did that video.
@bashardlaleh2110
@bashardlaleh2110 Жыл бұрын
what strategy does rollout restart follow and is it good for production? thanks for the high-quality content.
@irfanansari6448
@irfanansari6448 3 жыл бұрын
Hi Venkat, Thanks for this video but I was thinking what if we have pods with multiple containers using different images in deployment. How we are going to achieve it.?
@zhihaowang5410
@zhihaowang5410 3 жыл бұрын
Hi thanks for the video, I like it, I have one question about the rolling updates, For example, I have a deployment app, but the deployment app only have one pod, I do not use replicaSet for the deployment, then I want to live upgrade the pod image, then how can I do the rolling update? is that the same step as the video?
@zaheerhussain5311
@zaheerhussain5311 3 жыл бұрын
Hi Do you have any video on auto rollback in kubernetes when deployment becomes fails? Regards Zaheer
@CrazySkillz15
@CrazySkillz15 5 жыл бұрын
Great explanantion! Thanks for posting this in! I had a question. What shell commands did you use to get a dashboard of k8s services deployments and pods like that such that it updates every 2 seconds? I know --watch can be used but its not very informative for my usecase.
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Abhijeet, thanks for watching this video. I used the good old watch command for that. Any linux command prefixed with "watch" will iteratively run every couple of seconds. Thanks.
@ramalingamvarkala1571
@ramalingamvarkala1571 5 жыл бұрын
This video is very heplful.Can u make a video on blue/green deployment
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Ramalingam, thanks for watching this video and suggesting a topic. I will add it to my list and get it recorded. Cheers.
@VijayYadav-rc2is
@VijayYadav-rc2is 3 жыл бұрын
Sir i have a deployment with 3 replicas and i want to update the image with latest version.but i dont want to change the image name. Is it possible to do it with same image name?
@tirthadeeproy1200
@tirthadeeproy1200 2 жыл бұрын
could you please make a tutorial on DB schema migration (like adding new table and change column to existing table) in kubernetes rolling update
@naveenkumar-jy3tw
@naveenkumar-jy3tw 5 жыл бұрын
thanks.
@justmeandopensource
@justmeandopensource 5 жыл бұрын
You are welcome Naveen!
@pavanrajgupta641
@pavanrajgupta641 4 жыл бұрын
Hi , Thanks for posting videos, I have one question. What is the difference between $ kubectl patch deployment and Rolling update Strategy ?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
HI Pavan, thanks for watching. These two are different concept. I am not sure why you want to relate these two. Kubectl patch command is used to update your deployment. For example you can use kubectl patch deployment to change the image of the pods, or any other settings. Rolling update strategy is a mechanism where you define like maxunavailable, maxsurge like settings when it comes to updating the deployments.
@biahoi87
@biahoi87 5 жыл бұрын
Hi Venkat, how the kubenetes behave in the case that I push a new container image for a hot fix in between the pause and resume deployment ?
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Quan, I haven't tested that scenario. Just go ahead and try that and let me know what happens. This is how you learn. Thanks.
@andrewnhien9714
@andrewnhien9714 4 жыл бұрын
It can be, you can edit your yaml file and apply it, then you need to run command "resume" like Venkat show in video. It will create new replicaSet like you define in yaml file.
@ridan1111
@ridan1111 4 жыл бұрын
I love your videos. amazingjob. do you have anything like this for openshfit aswell?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Ridan, thanks for watching. Openshift is in my list. Haven't started yet. I might start it soon. Cheers.
@carlosvasquez4567
@carlosvasquez4567 2 жыл бұрын
gold stuff
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Thanks for watching.
@TheLittlemaster2009
@TheLittlemaster2009 4 жыл бұрын
hi #just me and opensource,hope you are doing good !! do you have any video on liveness and readiness probes and if it is i can't find it in :(
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Shoaib, thanks for watching this video. I didn't do a video on those trivial topics that I should have done. I will add it to my list. Can't guanrantee when it will be released as I have recorded videos for the next two months and a lot in my list of stuff to cover. Cheers.
@Praveen-xx7iy
@Praveen-xx7iy 4 жыл бұрын
Is it possible to do a rolling update with a single replica without downtime?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Praveen, thanks for watching this video. Even when you have just one replica, when you update it, it should create a new pod and only when its ready the replication controller will terminate the old pod. The replication controllers job is to maintain 1 pod at any time. So you should have a zero downtime with that. Cheers.
@anonymous9048
@anonymous9048 5 жыл бұрын
Great video!! Just wanted to ask, by specifying maxSurge=2 and maxUnavailable=2, would the update mechanism be similar to a Blue Green deployment? Thanks
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi, Thanks for watching this video and taking time to comment. Blue green deployment requires you to maintain two identical environments, where you roll out new versions to identical environment and once verified traffic will switched to the new environment. And if something goes wrong, traffic can be switched back to the old environment. Thats a general idea behind blue green deployment. Whereas here, we are not doing any such logic. Instead we are rolling out new versions in the same environment gradually. Maxsurge and max unavailable can be chosen as per requirement and capacity. I just chose those numbers out of the sky. Thanks.
@anonymous9048
@anonymous9048 5 жыл бұрын
@@justmeandopensource Oh. I see... But both update mechanisms cause 0 downtime, correct? Thanks for the quick response :)
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Yes. You are right. Cheers.
@anonymous9048
@anonymous9048 5 жыл бұрын
@@justmeandopensource Perfect. Thanks!
@justmeandopensource
@justmeandopensource 5 жыл бұрын
@@anonymous9048 You are welcome. Cheers
@gautamsoni17990
@gautamsoni17990 4 жыл бұрын
Hey Venkat, I have one doubt, when i deploy my deployment with rollingupdate with maxsurge: 0, maxunavailable: 1, minreadyseconds: 5 and revisionhistorylimit: 10 When i run the deploy, my 4 container created and start running fine but when i change the image tag and then apply the same yaml file, only 1 container got updated and i have waited for 5 minutes but nothing happened on 2nd container??? I have used first nginx:alpine and then used nginx:1.15.1
@gautamsoni17990
@gautamsoni17990 4 жыл бұрын
Please let me know some use case of maxsurge and maxunavailable as these are not clear yet
@gautamsoni17990
@gautamsoni17990 4 жыл бұрын
i have tried to do multiple things with this yaml file, and what i have found is if i remove the minReadySeconds option than my rollout will work perfectly and all container start terminating and all new container started together... but i want the same like your video, i want to update one by one... Could you please explain little more??
@gautamsoni17990
@gautamsoni17990 4 жыл бұрын
When i am using the microk8s on ubuntu then this issue not coming.... fyi
@gautamsoni17990
@gautamsoni17990 4 жыл бұрын
I dont know what happened but now it is start working... i havent changed anything... i just rebooted the server and then try the same.... and i am happy that it is working now
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@gautamsoni17990 Perfect. That save me some time. Thanks for the confirmation. Cheers.
@akshay_metgud
@akshay_metgud 3 жыл бұрын
Thank you very much venkat.. You rocks. I have some queries with respect to the below error : Im gettting same error with minikube as well as in ubuntu VM. Could you please help on the below? NAME STATUS MESSAGE ERROR controller-manager Unhealthy Get "127.0.0.1:10252/healthz": dial tcp 127.0.0.1:10252: connect: connection refused scheduler Unhealthy Get "127.0.0.1:10251/healthz": dial tcp 127.0.0.1:10251: connect: connection refused etcd-0 Healthy {"health":"true"}
@nah0221
@nah0221 3 жыл бұрын
Hello awesome man .. could you make a tutorial for rolling out & back an application contains database. So, we can see how to manage database migration ?!
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi, thanks for watching. Database layer is kept separate independently of the front end so that we can update or scale the front end. Database migrations must be handled separately to front end.
@realthought2262
@realthought2262 4 жыл бұрын
hello , at 25:08 you modified the changes cause of revision 2 but what if i want to change it for revision 1 , coz you haven't had mentioned any revision no so i get that it will change the last revision by default if i run : kubectl annotate deployment nginx-deploy kubernetes.io/change-cause="Updated to revision 1.14.2"
@justmeandopensource
@justmeandopensource 4 жыл бұрын
hi, thanks for watching. I am not sure if thats possible. By default annotate updates the last revision with the supplied change cause. For any new rolling updates you can use --record flag or you can update the manifests directly. I will have to test this. kubernetes.io/docs/concepts/workloads/controllers/deployment/#checking-rollout-history-of-a-deployment
@realthought2262
@realthought2262 4 жыл бұрын
@@justmeandopensource thx for the reply, I will also try if found something will let you know as well.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@realthought2262 that will be useful to know thanks.
[ Kube 20 ] NFS Persistent Volume in Kubernetes Cluster
24:08
Just me and Opensource
Рет қаралды 31 М.
[ Kube 13 ] Using Persistent Volumes and Claims in Kubernetes Cluster
44:30
Just me and Opensource
Рет қаралды 36 М.
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 59 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 13 МЛН
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
[ Kube 22 ] How to upgrade your Kubernetes Cluster
42:01
Just me and Opensource
Рет қаралды 8 М.
Kubescape | Kubernetes security platform (jmos/kube/119)
27:29
Just me and Opensource
Рет қаралды 1,4 М.
Simple RKE2, Rancher and Longhorn Install
13:21
Clemenko - Kuberenetes Firefighter
Рет қаралды 20 М.
Learn Jenkins! Complete Jenkins Course - Zero to Hero
1:08:28
DevOps Journey
Рет қаралды 742 М.
How to restart kubernetes pods automatically?
12:48
KloudSpace with Siba
Рет қаралды 431
Kubernetes Explained
10:59
IBM Technology
Рет қаралды 610 М.
[ Kube 12 ] Init Containers in Kubernetes Cluster
19:13
Just me and Opensource
Рет қаралды 18 М.
[ Kube 33 ] Set up MetalLB Load Balancing for Bare Metal Kubernetes
11:02
Just me and Opensource
Рет қаралды 41 М.
Top 5 Most-Used Deployment Strategies
10:00
ByteByteGo
Рет қаралды 251 М.
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 59 МЛН