clusterawsadm gc configure

Specify what cleanup tasks will be executed on a given cluster

Synopsis

This command will set what cleanup tasks to execute on the given cluster during garbage collection (i.e. deleting) when the cluster is requested to be deleted. Supported values: load-balancer, security-group, target-group.

clusterawsadm gc configure [flags]

Examples

  # Configure GC for a cluster to delete only load balancers and security groups using existing k8s context
  clusterawsadm gc configure --cluster-name=test-cluster --gc-task load-balancer --gc-task security-group
  
  # Reset GC configuration for a cluster using kubeconfig
  clusterawsadm gc configure --cluster-name=test-cluster --kubeconfig=test.kubeconfig

Options

      --cluster-name string   The name of the CAPA cluster
      --gc-task strings       Garbage collection tasks to execute during cluster deletion
  -h, --help                  help for configure
      --kubeconfig string     Path to the kubeconfig file to use (default "/opt/buildhome/.kube/config")
  -n, --namespace string      The namespace for the cluster definition (default "default")

Options inherited from parent commands

  -v, --v int   Set the log level verbosity. (default 2)

SEE ALSO

  • clusterawsadm gc - Commands related to garbage collecting external resources of clusters
Auto generated by spf13/cobra on 4-Nov-2024