Uninstall Kubeflow

The instructions below detail how to uninstall Charmed Kubeflow on any Kubernetes, with a separate section for MicroK8s.

Uninstalling Charmed Kubeflow via Juju

1. Remove Kubeflow model

To remove the Juju model containing your Kubeflow deployment, run the command:

juju destroy-model kubeflow --destroy-storage

If you chose a different name other than kubeflow for the model, substitute it in the command above. This will remove all the applications under that Kubernetes namespace, and then remove the namespace itself.

If you encounter errors while destroying the model, you can run this command to force deletion:

juju destroy-model kubeflow --yes --destroy-storage --force

Alternatively, to simply release storage instead of deleting it, run with this flag:

juju destroy-model kubeflow --release-storage

2. Remove Juju controller

If you are not using Juju for anything else on the cluster, you may also want to remove the controller to free up resources. You will need to know the name of the controller ( run juju controllers for a list). In the install page, we chose the name my-controller so we remove the controller with:

juju destroy-controller my-controller

Uninstalling Kubeflow from MicroK8s

Assuming Kubeflow was installed using the MicroK8s enable kubeflow helper script, it may be disabled with:

microk8s disable kubeflow

This operation may take a few minutes, but the helper script will notify you when it is complete.
You can confirm that the resources have been removed with kubectl:

microk8s kubectl get all -n kubeflow

Note that the following add-ons are also enabled when enabling Kubeflow:

  • dns
  • storage
  • ingress
  • metallb

If some or all of these are no longer required you should proceed to disable these also. For example:

microk8s disable metallb

Last updated a month ago.