You can uninstall Kaptain via the CLI or UI, but uninstalling via the UI requires you to do some clean-up steps with the CLI, as well.
Uninstall Kaptain via the CLI
Ensure you provide the correct target workspace namespace and the correct
AppDeploymentname or ID that you entered when creating your Kaptain instance:CODE
kubectl -n <workspace_namespace> delete AppDeployment <AppDeployment_name>
Remove the following service account:CODE
kubectl -n <workspace_namespace> delete serviceaccount kaptain-install-job-service-account
Remove the following CRDs:CODE
kubectl delete notebooks.kubeflow.org \ suggestions.kubeflow.org \ mpijobs.kubeflow.org \ pytorchjobs.kubeflow.org \ experiments.kubeflow.org \ tfjobs.kubeflow.org \ viewers.kubeflow.org \ scheduledworkflows.kubeflow.org \ poddefaults.kubeflow.org \ xgboostjobs.kubeflow.org \ profiles.kubeflow.org \ mxjobs.kubeflow.org \ trials.kubeflow.org \ inferenceservices.serving.kserve.io \ trainedmodels.serving.kserve.io \ clusterservingruntimes.serving.kserve.io \ inferencegraphs.serving.kserve.io \ predictors.serving.kserve.io \ servingruntimes.serving.kserve.io \ tensorboards.tensorboard.kubeflow.org
You can also remove the following CRDs that are included in Kaptain, however, they could be required for other applications as well.
IMPORTANT: Before you remove the following CRDs, ensure that each one of them is not being actively used by other applications or components.CODE
kubectl delete perconaxtradbbackups.pxc.percona.com \ perconaxtradbclusterrestores.pxc.percona.com \ clusterworkflowtemplates.argoproj.io \ compositecontrollers.metacontroller.k8s.io \ perconaxtradbclusters.pxc.percona.com \ workflowtasksets.argoproj.io \ workflowtemplates.argoproj.io \ cronworkflows.argoproj.io \ workflows.argoproj.io \ decoratorcontrollers.metacontroller.k8s.io \ controllerrevisions.metacontroller.k8s.io \ workfloweventbindings.argoproj.io \ perconaxtradbclusterbackups.pxc.percona.com
Uninstall Kaptain via the DKP UI
Log in to your DKP UI.
From the top menu bar, select your target workspace.
Select Applications from the sidebar menu to browse all applications that can be deployed or uninstalled.
Search for Kaptain in the search bar or by browsing through the applications.
Select the three-dot menu and select Uninstall on the Kaptain card of the instance you would like to delete.
Follow the instructions on the pop-up window to delete Kaptain on your workspace permanently.
For a complete removal of Kaptain’s services and CRDs, proceed with steps 2 to 4 from the Uninstall Kaptain via the DKP CLI section.