Comments (9)
Hi @jyejare this description is a bit confusing to me. It seems that this is about simulation OCP uninstallation process via OCP installer.
But I think the goal is more general - delete more type of resources. So, I suggest to rename this issue to something like "Add more resource types which can be deleted by CloudWash", wdyt?
from cloudwash.
btw, for deleting VPCs I use the following script
https://github.com/lianghong/delete_vpc
from cloudwash.
@apodhrad The request is from Prabhod and even I didn't look into it in the dip but the Issue description is giving a more context.
It seems he would like to clean up the resources (EC2, VPC, S3) on OCP cluster where the cluster is deployed on AWS and not the uninstallation of the actual cluster. Just FYI, The installation of cluster on AWS is documented https://docs.openshift.com/container-platform/4.6/installing/installing_aws/installing-aws-default.html.
To clean up the resources on the cluster deployed on AWS, we can either take the route of deleting it using AWS APIs or OCP APIs whichever route is permissible, provides more benefits in future as to delete more resources in cluster.
from cloudwash.
We use AWS only for deploying the OCP clusters. So we need this feature as well.
Note that all OCP resources are being tagged, so you can simply inspect items which you are going to delete, and if you find kubernetes.io/cluster/${CLUSTER_ID}
between the tag, you know that it belongs to the OCP cluster, and your desire here is to remove all resources which are tagged with the same tag.
Note that this request is also relevant for other clouds, not only AWS ...
from cloudwash.
Right, so maybe we could consider introducing a new variable DELETE_OCP
which will work similar to DELETE_VM
.
That means, if we identified a VM or VPC with tag kubernetes.io/cluster/${DELETE_OCP}*
then we can just uninstall the OCP using the OCP installer.
from cloudwash.
The question is - which resource(s) should we look for and check the tag kubernetes.io/cluster/${CLUSTER_ID}
.
Maybe we could look for VPCs as many resources are directly tied with a VPC.
Here is an example of VPC tag
"Tags": [
{
"Key": "Name",
"Value": "ocp4-23-6xcdn-vpc"
},
{
"Key": "kubernetes.io/cluster/ocp4-23-6xcdn",
"Value": "owned"
}
I'm just not sure what is the alternative for VPC in other cloud providers such as Azure or GCP
from cloudwash.
If someone is interested I have prepared a quick PoC (WIP) at
#18
from cloudwash.
I would like to propose a feature for the cleanup of OCP resources like PipelineRuns, Pods, Deployments, etc.
I can take a look at this and create a PR if required.
from cloudwash.
@bovem For now @apodhrad is now looking into cluster cleanup but you can create a new issue and work on it :)
from cloudwash.
Related Issues (20)
- PoC for refactoring based on Pulumi HOT 1
- Delete Pattern based on names should be regex based
- Add contribution documentation for future contributors to the project
- Update README with table showing supported types and cloud providers HOT 9
- Cloudwash needs more detailed logging. HOT 3
- For Azure resources, an AttributeError occurs due to a missing attribute in the settings configuration
- Simplify settings file for users to select resource type per cloud provider HOT 2
- Cloudwash not working on Google Cloud HOT 2
- Future warning for AWS HOT 4
- Dedicated Settings files contains wrong keys for Azure and AWS
- Opt-in retention of cloud resources HOT 2
- Support for VMWare cloud HOT 5
- Add an option to filter by tag HOT 2
- Support for deleting all resource groups in Azure HOT 9
- Create a Cloudwash service to store information about users account resources in centralised DB
- Support deleting Route53 zones and records
- Support deleting S3 buckets
- Support deleting VPC's HOT 1
- Support deleting Users
- Consider using ubi9/python-311 as a base image HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudwash.