Day 35/40 - Kubernetes ETCD Backup And Restore Explained

  Рет қаралды 5,205

Tech Tutorials with Piyush

Tech Tutorials with Piyush

Күн бұрын

Пікірлер: 55
@t.bikash62
@t.bikash62 12 күн бұрын
More than any praise, may be this word puts a smile - 'Subscribed'!
@TechTutorialswithPiyush
@TechTutorialswithPiyush 8 күн бұрын
Thank you 😊🙏
@bhanubisht8
@bhanubisht8 Күн бұрын
Completed the video...!!!!!
@dhruprajapati9269
@dhruprajapati9269 Ай бұрын
Just Amazing as all the videos of yours !! Thanks for this sir.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 28 күн бұрын
Thank you! Glad you're enjoying the series.
@abc-edm
@abc-edm Ай бұрын
thanks for your clear explanation, that made things easier and more fun
@TechTutorialswithPiyush
@TechTutorialswithPiyush Ай бұрын
Awesome! I'm glad you found it fun and easy to understand. 😄
@ashutoshpandey6110
@ashutoshpandey6110 4 ай бұрын
Generally we don't need to change etcd manifest --> the mountPath and --data-dir location , as we know we --data-dir flag take from the mountPath location and mountPath location is linked with volume - hostPath ---So we just need to change the volume -> hostPath value that's it. Great tutorial
@khamruddin988
@khamruddin988 4 ай бұрын
Thanks Piyush for your wonderful videos
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
You're most welcome
@harshgupta5113
@harshgupta5113 Ай бұрын
Awesome video
@TechTutorialswithPiyush
@TechTutorialswithPiyush Ай бұрын
Thanks! 😊
@thejaswarup
@thejaswarup 4 ай бұрын
Appreciate your efforts. Thank you.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Thanks for watching!
@baivabmukhopadhyay8970
@baivabmukhopadhyay8970 2 ай бұрын
very informative.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
Thank you!
@arunsippy2258
@arunsippy2258 Ай бұрын
you spoke about stopping the API server and ETCD POd before taking hte backup, but did not demonstrate it, or any doc related to that which u can suggest
@TechTutorialswithPiyush
@TechTutorialswithPiyush Ай бұрын
I have explained that part in one of the previous videos. You can move the manifest yamls of these two components to a different directory from /etc/kubernetes/manifest and it will stop those
@Imran_kpk
@Imran_kpk 4 ай бұрын
Appreciate your efforts ❤
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Thank you
@vijaykumar6370
@vijaykumar6370 4 ай бұрын
Super
@sundayuloko1964
@sundayuloko1964 4 ай бұрын
Thanks for sharing.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Thanks for watching!
@prashlovessamosa
@prashlovessamosa 4 ай бұрын
Thanks Piyush
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Welcome :)
@vijaykumar6370
@vijaykumar6370 Ай бұрын
Hi , Could you pls explain about PEER etcd restore and backup. now a days they asked in CKA exam
@TechTutorialswithPiyush
@TechTutorialswithPiyush Ай бұрын
Hello Vijay, peers are the members of an ETCD cluster in HA mode, you can still take the snapshot in the same way, to restore , you can to restore on each of the members by changing the value of --initial-advertise-peer-urls to the member IP. Rest all the process is same.
@ZahidKhan-hi1gb
@ZahidKhan-hi1gb 4 ай бұрын
So Beautiful Session ❤❤❤❤❤
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Glad you found it helpful
@erdi005
@erdi005 4 ай бұрын
Hi! I took my CKA exam yesterday, I got the question about ssh into node, and perform back up and restore of etcd with peer.key and peer.crt. If I passed those in when backing up, I received “no such file or directory” error on the peer.crt/peer.key. Any idea what to do here? Can’t find any examples out there that does this either. I also tried server.crt and server.key, but all I got was “permission denied”, so I suspect I have to authenticate with the peer flags somehow(?) These peer flags were also not present when checking the etcd pod’s commands. I do see in the docs, under Securing Communication that there are some peer flags for configuring etcd with secure peer comm., but these flags were unknown to the etcdctl tool
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
You might need to use sudo -i to elevate the privileges or use the command along with sudo, also, etcdutl tool, have you tried this?
@erdi005
@erdi005 3 ай бұрын
@@TechTutorialswithPiyush Thanks for the answer, I passed the exam successfully and I was able to perform the entire backup and restore process with sudo, although it is not stated on the left that I should use sudo.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
@@erdi005 Congratulations 👏🏽👏🏽 Yes, they should have mentioned this. Same happened with me as well
@erdi005
@erdi005 3 ай бұрын
@@TechTutorialswithPiyush thank you for everything
@kunaldarji2403
@kunaldarji2403 3 ай бұрын
Hi, why we are giving new path as --data-dir to store backup file, backup already store in /opt/*.db path. can we use this path /opt/*.db path in etcd.yaml file? Pls explain on this
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
Can you please share the exact timestamp?
@kunaldarji2403
@kunaldarji2403 3 ай бұрын
@@TechTutorialswithPiyush - 21:22, "--data-dir="
@dips_07
@dips_07 3 ай бұрын
Hi Piyush need one clarification here 21:25 we are restoring the snapshot at new directory that is /var/lib/etcd-restore-from-backup right. But can we restore an etcd snapshot directly into the existing etcd data directory...if possible so we dont need to modify the etcd.yaml file...waiting for your response on this. Thaks in advance 🙏
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
Hello Buddy, Yes, we can restore it to existing directory as well but we are doing this to avoid overwriting the backup.
@KaushalBirthday1stjuly1992
@KaushalBirthday1stjuly1992 3 ай бұрын
@@TechTutorialswithPiyush overwriting backup problem will come. Instead of that we can do below things: first we should check etcdutl and etcdctl working any location or not for this you can download etcdctl and etcdutl package binary and move its binary to /usr/bin/ after than remove folder etcd at location /var/lib/etcd now if you do etcdutl , you can do restore from snapshot... you don't need to do anything ...i have tried in killercoda exercise and its working... you can try it
@bhanubisht8
@bhanubisht8 3 күн бұрын
Comment for target.....!!!!!
@guntreddirajesh
@guntreddirajesh 4 ай бұрын
🤩
@marieswaran8124
@marieswaran8124 8 күн бұрын
Is this etcd backup and restore method will restore secret, configmap with data or only object will be restored?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 7 күн бұрын
Yes, as the config data also get stored inside the etcd database
@marieswaran8124
@marieswaran8124 7 күн бұрын
@@TechTutorialswithPiyush Thanks for the reply. I will practice it.
@LakshmiCharanTangisettiTangise
@LakshmiCharanTangisettiTangise 6 күн бұрын
i have deployed ectd as a service not as a pod what is the process of taking etcd and backup i have tired ur process but not able to restore etcd can u please help
@TechTutorialswithPiyush
@TechTutorialswithPiyush 6 күн бұрын
Hello, It should not matter how ETCD is deployed the process is same. Can you please share the steps you have followed and issue you are facing? It will be easy to troubleshoot if you can join the discord community (thecloudopscommunity.org) and share the details over there
@Imran_kpk
@Imran_kpk 4 ай бұрын
❤❤❤
@AsadOnline-sz3os
@AsadOnline-sz3os 4 ай бұрын
Krew plugin is required.. to smooth backup and restore
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Plugins can be used for anything but we are learning things cloud native way. You can setup a cluster with just a few click in a managed cloud or just a single click using Terraform still, we need to understand how to setup from scratch. Our main goal is learning and that can be done by doing things the hard way.
@AsadOnline-sz3os
@AsadOnline-sz3os 4 ай бұрын
@TechTutorialswithPiyush thanks recently we migrated from 1.20 to 1.31 cluster and infact velerio is an option but somehow its fail to sync with new cluster. We did with using some plugins and it works like charm. And in vedio you were explaining through etcd is it work with some older version as well? Like 1.19 to 1.30? Thanks
@AsadOnline-sz3os
@AsadOnline-sz3os 4 ай бұрын
And through etcd method is it ensure having the same ingress gateway? Like the external ip.
@blitzerdisco
@blitzerdisco 2 ай бұрын
Hi Piyush! again thanks for your guidance on ETCD backup and restore, I learned a lot with your excellent pace in this course. There is one issue i encountered during the assignment. After performing the actions along with your video, i had the backup and restore successfully as you've shown. My cluster looked well. Then i followed the assignment steps and started by creating a new deployment. However pod creation and termination processes are halted with the etcd-restore-from-backup setting. after few hours of troubleshooting attempt - deleting calico pods etc, I managed to solve the problem by reverting the cluster from "etcd-restore-from-backup" setting to initial (original etcd) setup by modifying the etcd yaml. I think this would probably cause a downtime in a live system... In your case, would you be able to successfully create/terminate pods after the restore?
@blitzerdisco
@blitzerdisco 2 ай бұрын
ok, i tried again and this time it worked somehow :) i also tried to reproduce the problem but i couldn't make it :)) thanks anyway Piyush, you are welcome if you have any comments on this one.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
I am super happy to know that you were able to fix the issue. That's how a devops engineer should work. You might have missed a step earlier but you did not give up, you tried again and fixed the issue, more learning and more understanding comes with that. More power to you
Day 33/40 - Kubernetes Ingress Tutorial | Ingress Explained by @AbhishekVeeramalla
54:03
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Day 20/40 - SSL/TLS Explained Simply - How SSL/TLS Works?
26:08
Tech Tutorials with Piyush
Рет қаралды 10 М.
Day 31/40 - Understanding CoreDNS In Kubernetes
19:18
Tech Tutorials with Piyush
Рет қаралды 7 М.
ETCD Backup and Restore | CKA Question 9
11:21
Infinite Linux
Рет қаралды 10 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 343 М.
Day 22/40 - Kubernetes Authentication and Authorization Simply Explained
20:42
Tech Tutorials with Piyush
Рет қаралды 6 М.
ETCD Backup and Restore in Kubernetes Cluster | Complete Guide
1:02:53
Full NGINX Tutorial - Demo Project with Node.js, Docker
1:11:40
TechWorld with Nana
Рет қаралды 97 М.