[ Kube 48 ] Kubernetes Pod Disruption Budget Demo

  Рет қаралды 11,036

Just me and Opensource

Just me and Opensource

Күн бұрын

Пікірлер: 39
@jayeshthamke7860
@jayeshthamke7860 3 жыл бұрын
Since you already uncordon kworker2 then why the pods could not be scheduled & created on kworker2 when you drain kworker1? Also IMO it is conflicting as upgrading the cluster with major K8s version the nodes are restarted then does it mean because of pdb the administrator cannot upgrade the cluster?
@RAJESHNAYAK-wg5li
@RAJESHNAYAK-wg5li 5 жыл бұрын
Hi Venkat, Thank your effort on your all videos. Great thanks. I have created a statefulset mongo-db in kubernates cluster with one as primary pod and another as a secondary pod. Now i need to do enable the arbiter in mongo. How i can do that, should i use pod or statefulset?.
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Rajesh, Thanks for watching this video. I was working on a separate series for MongoDB tutorial and made around 9 videos. I am planning to do a video on deploying Mongodb in k8s cluster. I have already played with it by deploying a simple mongodb replicaset in k8s cluster. When I get some time, I will record the video and release it. Other than that, I haven't tried much with MongoDB. Not sure about arbiter deployment. May be I will get some idea when I try playing with it. Thanks.
@HA04259
@HA04259 5 жыл бұрын
Hi Venkat, thank your effort on your all videos. Great thanks. Can you make videos on cicd using Jenkins kubernetes with samle frontend app and backend with db
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Hareesh, thanks for watching this video. I have planned for few videos around Jenkins CI/CD in Kubernetes. I am playing with it at the moment. Soon I will release video on it. Thanks.
@olehigorovich474
@olehigorovich474 2 жыл бұрын
Venkat, this is gold content! Thank you for your effort!
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi Oleh, many thanks for watching. Cheers.
@nanipuru8119
@nanipuru8119 Жыл бұрын
Thank you for the video it helped me to add the PDB's in our ENV. And now we are able to edit the PDB, bcz I tried editing and the changes were reflected.
@justmeandopensource
@justmeandopensource Жыл бұрын
Hi Nani, Thanks for watching.
@derekmab7734
@derekmab7734 3 жыл бұрын
Hi mate, thanks very much for your time to organising these beneficial videos. I have tries your demo and got this error I could not fix it: kubectl drain myk8s-cluster-worker3 node/myk8s-cluster-worker3 cordoned error: unable to drain node "myk8s-cluster-worker3", aborting command... There are pending nodes to be drained: myk8s-cluster-worker3 error: the server could not find the requested resource: kindnet-d6897, kube-proxy-j7ff5
@derekmab7734
@derekmab7734 3 жыл бұрын
Finally it is working. I look forward to more videos. Thanks for sharing.
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Abdel, thanks for watching and glad that you managed to get it working. Cheers.
@mandeepparmar974
@mandeepparmar974 3 жыл бұрын
Hello, Thank you for the video! really helpful. I was trying to apply the Pod Disruption Budget to a statefulset after I update my release I can see statefulset get update one at a time instead of 3 which I have defined in my PDB.
@gijovarghese7548
@gijovarghese7548 5 жыл бұрын
I was trying PDB in GKE, with a min one WordPress instance that should be live always. I've set PDB for WordPress, created a new node pool, and then deleted the old node pool. However, WordPress was down during that time. Is it normal? How can I prevent downtime during these node upgrades?
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Gijo, deleting a node pool will delete the pod and create it in another node. PDB won't help in this situation. You can cordon the nodes, increase the replica count for your app. Now the new replica will be scheduled in the new node pool. Then you can delete the other node pool. And finally reduce the replicas to 1. Thanks.
@gijovarghese7548
@gijovarghese7548 5 жыл бұрын
@@justmeandopensource Thanks :)
@gijovarghese7548
@gijovarghese7548 5 жыл бұрын
@@justmeandopensource is there any way to create new pods when a shutdown command is received? If so I could use GKE's preemptible VMs which are super cheap
@justmeandopensource
@justmeandopensource 5 жыл бұрын
@@gijovarghese7548 you are welcome. Cheers.
@gijovarghese7548
@gijovarghese7548 5 жыл бұрын
@@justmeandopensource is there any way to create new pods when a shutdown command is received? If so I could use GKE's preemptible VMs which are super cheap
@mmu99
@mmu99 3 жыл бұрын
this what I am looking for.. thanks for sharing this Venkat one thing, may I know what kind of zsh plugin you're using for that splitting terminal output (top) and command (bottom)?
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi, thanks for watching. I use Arch Linux with I3 Tiling Window Manager - Zsh shell - oh-my-zsh (zsh plugin manager) - zsh-autosuggestions (plugin that suggests commands based on my history) - zsh-syntax-highlighting (plugin) Termite as terminal emulator. I am also planning to do a video on my latest terminal setup as many users requested. Here is the one I did a while ago. kzbin.info/www/bejne/qaCkqIinZ8iEfrM
@mmu99
@mmu99 3 жыл бұрын
@@justmeandopensource thank you Venkat
@randalljoe3402
@randalljoe3402 3 жыл бұрын
I guess it is quite off topic but do anyone know of a good website to stream new movies online ?
@rewanthtammana
@rewanthtammana 4 жыл бұрын
Never heard of it, interesting to watch :-)
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Rewanth, thanks for watching.
@gijovarghese7548
@gijovarghese7548 5 жыл бұрын
What is the best way to keep at least 1 pod? Is it via minReplicas:1 or via PDB set to 1?
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Gijo, Thanks for watching this video. minReplicas and PDB are two different concepts for different usecases. Replica set to 1: To make sure atleast we have one pod running always. If the node thats running this pod crashes, the pod will get rescheduled on another node. If cluster administrator drains the node this pod is running, the pod will be evicted and will be created on another node. If you have one pod in your deployment, during this draining/evicting process, your application will be down for a short period while the pod is created on another node. PDB: You define that my deployment has to have atleast 1 pod running always. This is in addition to setting the replica count to 1. When a node has to be drained and if your pod is on that node, it won't be evicted thus keeping your applications uptime. Thanks
@gijovarghese7548
@gijovarghese7548 5 жыл бұрын
@@justmeandopensource Thanks a lot
@justmeandopensource
@justmeandopensource 5 жыл бұрын
@@gijovarghese7548 You are welcome. Cheers.
@tamilselvan8343
@tamilselvan8343 4 жыл бұрын
hi Sir,as per my understanding currently i'm running node1 with 2 pods and node2 with 2 pods.now i'm going to drain node1 and pdp will set for allowed disruption is 1, 1. first it will evict one pod from node1 and another pod is always running on node1 or it will move to node2 once the previous pod will be scheduled on node2.??? please help me...
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Tamil Selvan, thanks for watching. In your case, it will be fine. When you drain that node, first pod will be evicted and until it is successfully relaunched in the other node and running the last pod on the current node won't get evicted as pdb is set to 1 which means at any point, you can afford to loose just one pod. Cheers.
@tamilselvan8343
@tamilselvan8343 4 жыл бұрын
@@justmeandopensource hi sir but I wants to update os on node1.in this scenario whether the pod is keep on running on node1??or once the pod2 is launched and and available for users then the pod on node1 will be scheduled to some other node.kindly provide ur suggestion for my clarification..
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@tamilselvan8343 You have number of replicas set to 4 and PDB to 1. And 2 pods are running on two of the nodes right. Here you are saying that at any point in time, i need to be running atleast 3 pods. As you drain the node, first pod will get terminated and launched to another node. Then the other pod will get terminated and launched in another node. This simply means that the draining won't evict both pods at the same time. Hope this makes sense. Cheers.
@tamilselvan8343
@tamilselvan8343 4 жыл бұрын
@@justmeandopensource now it's cleared sir. Thanks for ur valuable answers.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@tamilselvan8343 No worries. You are welcome. Cheers.
@nagdevineni6823
@nagdevineni6823 2 жыл бұрын
Excellent work Venkat
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Thanks for watching.
@farshidzamanirad9691
@farshidzamanirad9691 2 жыл бұрын
Useful. Thanks.
[ Kube 49 ] Jenkins CI CD Pipeline in Kubernetes
48:22
Just me and Opensource
Рет қаралды 42 М.
[ Kube 13 ] Using Persistent Volumes and Claims in Kubernetes Cluster
44:30
Just me and Opensource
Рет қаралды 36 М.
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 75 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
[ Kube 11 ] Jobs & Cronjobs in Kubernetes Cluster
36:36
Just me and Opensource
Рет қаралды 41 М.
Pod Disruption Budget in kubernetes
12:58
Deekshith SN
Рет қаралды 11 М.
[ Kube 19 ] Performing Rolling Updates in Kubernetes
45:37
Just me and Opensource
Рет қаралды 10 М.
[ Kube 58 ] Using Vertical Pod Autoscaling in Kubernetes
22:55
Just me and Opensource
Рет қаралды 10 М.
[ Kube 7 ] Kubernetes Pods Replicasets & Deployments
28:22
Just me and Opensource
Рет қаралды 25 М.
Kubernetes - PodDisruptionBudget - PDB, Pod Priority Class with demo
36:43
Harness the Power of Kubernetes with Pod Disruption Budgets
14:15
Mischa van den Burg
Рет қаралды 971
Pod Topology Spread Constraints in Kubernetes
9:43
Lukonde Mwila
Рет қаралды 3,6 М.