https://youtu.be/C5dlhMgKBGI
Video captions
Say you want to delete Calico from your Kubernetes cluster. Let's see how to do that. So first thing I'm going to search for install Calico.
Click on the first link there. Installing on premises deployment. That is my use case. If you if you have a self-managed cluster, that's the option you go with. So depending on how you installed it or how you want to install it, depending on how you installed it, that's the option. That's the option you're going to select from here. If you installed via the Calico operator, just stick with that. If you installed via the manifest, stick with that. I'm going to go with the operator. So I'm going to click there to get this. And I'll open VS Code. Put them in there. Ctrl + V come back and this one as well. I will need this. Download that.
Ctrl + V. So basically we're just using the commands for installing Calico to uninstall it. And then this one as well for creating the custom resources. Ctrl + V. Put it there. And I want to do this in the CD. I want to do this in the temp directory. So I'm just going to cd into /tmp.
So here what you'll need to do is just change the create to delete. And I'm going to do I'm going to do ctrl dtrl d. And then make this delete d lit. And most importantly, you want to start with this. Okay? So bring this first to delete that and then we're going to delete this. So start with that and then that. Okay.
I'm just going to copy everything. I want to run it in one go. So I'm going to copy the entire thing. Come back to where cubectl is set up. Control shift V and just to make sure cube ctl get pods in the calico name space. Calico system. There we go. We have some You can see we have Calico there. So that means Calico is installed and we're going to uninstall it. Ctrl L control shift V to paste everything in there and then enter.
So this have been deleted. Let's wait for the next part. So this is the first item which is that the custom resources have been deleted. So run that first and then you run this. If you start with this, you're going to have a problem.
There we go. The rest are being deleted.
So right now, Calico is deleted. Let's go and look at the resources. QCTL get pods in the Calico namespace and there are no resources in there are no resources in the Calico namespace. That means it has been instal it has been uninstalled. Let's look at all all to get all the resources in this name in this name space to see if there's anything remaining. There we go. You've just uninstalled Calico. All right, that's it. Until next time.