DNS Cleaner
Overview
This command finds and removes DNS entries created by the kyma-gke-long-lasting
job in a Google Cloud Platform (GCP) project.
The kyma-gke-long-lasting
job creates a GKE cluster to install and test Kyma.
Usage
For safety reasons, the dry-run mode is the default one.
To run it, use:
env GOOGLE_APPLICATION_CREDENTIALS={path to service account file} go run main.go \
--project={gcloud project name} \
--zone={gcloud zone} \
--name={resource name} \
--address={address of the resource}
To turn the dry-run mode off, use:
env GOOGLE_APPLICATION_CREDENTIALS={path to service account file} go run main.go \
--project={gcloud project name} \
--zone={gcloud zone} \
--name={resource name} \
--address={address of the resource} \
--dryRun=false
Flags
See the list of available flags:
Name |
Required |
Description |
--project |
YES |
GCP project name. |
--zone |
YES |
GCP zone name. |
--name |
YES |
GCP DNS resource name. |
--address |
YES |
GCP resource's attached IP. |
--rtype |
NO |
DNS Record Type to search for. The default value is A . |
--ttl |
NO |
TTL of the resource. The default value is 300 . |
--maxAttempts |
NO |
Maximum number of retries in the backoff. The default value is 3 . |
--backoff |
NO |
Initial backoff in seconds for the first retry. The backoff will increase after this time. The default value is 5 . |
--dryRun |
NO |
The boolean value that controls the dry-run mode. The default value is true . |
Environment variables
See the list of available environment variables:
Name |
Required |
Description |
GOOGLE_APPLICATION_CREDENTIALS |
YES |
The path to the service account file. The service account requires at least container.clusters.list and container.clusters.delete Google IAM permissions. |