Skip to main content

Uninstall

caution

To uninstall kube-green, you should always use the same process as for installing but in reverse.

Before continuing, ensure that there are no kube-green resources in the cluster.
You can check this with the following command:

kubectl get SleepInfo --all-namespaces

kubectl

caution

The uninstall commands below will delete all kube-green CRDs in the cluster.
If you run the undeploy command, the namespace of kube-green (by default kube-green) will be deleted.

You can uninstall it using the kubectl delete command.

Delete the installation manifests using a link to your currently running kube-green version:

https://github.com/kube-green/kube-green/releases/download/${RELEASE_TAG}/kube-green.yaml

where ${RELEASE_TAG} is the tag of the release currently running.

kustomize

caution

The uninstall commands below will delete all kube-green CRDs in the cluster.
If you run the undeploy command, the namespace of kube-green (by default kube-green) will be deleted.

To uninstall kube-green from the cluster, change the working directory to the root of the kube-green repository, and run:

make undeploy

Helm Chart

To uninstall kube-green from the cluster, run:

helm uninstall RELEASE_NAME

where RELEASE_NAME is the name of the kube-green release currently installed (if you used the install guide, kube-green).
This command, by default, will not delete the CRDs from the cluster, which should be deleted manually.

If you have set the crds.keep value to false during the installation, the CRDs will also be deleted.

warning

This command will remove all SleepInfo resources from the cluster:

kubectl delete crd sleepinfos.kube-green.io

Operator Lifecycle Manager (OLM)

To uninstall kube-green from the cluster, follow this guide.