GKEDeleteClusterOperator
GoogleDeletes the cluster, including the Kubernetes endpoint and all worker nodes.
Access Instructions
Install the Google provider package into your Airflow environment.
Import the module into your DAG file and instantiate it with your desired params.
Parameters
Documentation
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
To delete a certain cluster, you must specify the project_id
, the name
of the cluster, the location
that the cluster is in, and the task_id
.
Operator Creation:
operator = GKEClusterDeleteOperator(task_id='cluster_delete',project_id='my-project',location='cluster-location'name='cluster-name')
See also
For more detail about deleting clusters have a look at the reference: https://google-cloud-python.readthedocs.io/en/latest/container/gapic/v1/api.html#google.cloud.container_v1.ClusterManagerClient.delete_cluster
See also
For more information on how to use this operator, take a look at the guide: Delete GKE cluster