remove
nctl remove
Remove Cluster Command
To remove the cluster from NPM:
nctl remove cluster --cluster-name <cluster-name>
This deregisters the cluster from NPM and also removes the Kyverno Operator plus its related components along with policysets that were installed at the time of registering the cluster.
Command Options
Flags | Shorthand | Description |
---|---|---|
--cluster-id <string> |
the NPM cluster Id of cluster to be removed (Overrides name. Needed if cluster name is not unique) | |
--cluster-name <string> |
the NPM cluster Id of cluster to be removed Overrides name. Needed if cluster name is not unique) | |
--deregister-only |
only deresgisters cluster from npm, without removing Kyverno components | |
--force |
force remove cluster ignoring empty kube-system namespace uid checks | |
--help |
-h |
help for remove command |
--insecure |
allow connection to an address with a self-signed or non-verifiable certificate (not recommended) | |
--kube-context <string> |
see the kube context from configured kubeconfig. Default is the current or sole context | |
--kubeconfig <string> |
show the kubeconfig path (defaults to $HOME/.kube/kubeconfig) | |
--namespace <string> |
-n |
namespace in which the operator is deployed (default “nirmata-system”) |
--release <string> |
-r |
release name for the helm chart (default “kyverno-operator”) |
--remove-operator-only |
remove only Kyverno operator from cluster, removes all components by default | |
--token <string> |
Nirmata API Key (env NIRMATA_TOKEN) | |
--url <string> |
Nirmata server base URL (env NIRMATA_URL) |