fluxcd-flux2/docs/cmd/flux_uninstall.md
Stefan Prodan 850ab0942b
Implement uninstall dry run
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-02-12 14:30:50 +02:00

1.2 KiB

flux uninstall

Uninstall Flux and its custom resource definitions

Synopsis

The uninstall command removes the Flux components and the toolkit.fluxcd.io resources from the cluster.

flux uninstall [flags]

Examples

  # Uninstall Flux components, its custom resources and namespace
  flux uninstall --namespace=flux-system

  # Uninstall Flux but keep the namespace
  flux uninstall --namespace=infra --keep-namespace=true

Options

      --dry-run          only print the objects that would be deleted
  -h, --help             help for uninstall
      --keep-namespace   skip namespace deletion
  -s, --silent           delete components without asking for confirmation

Options inherited from parent commands

      --context string      kubernetes context to use
      --kubeconfig string   path to the kubeconfig file (default "~/.kube/config")
  -n, --namespace string    the namespace scope for this operation (default "flux-system")
      --timeout duration    timeout for this operation (default 5m0s)
      --verbose             print generated objects

SEE ALSO

  • flux - Command line utility for assembling Kubernetes CD pipelines