Skip to main content
Skip table of contents

Uninstall Kaptain

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

  1. Ensure you provide the correct target workspace namespace and the correct AppDeployment name or ID that you entered when creating your Kaptain instance:

    CODE
    kubectl -n <workspace_namespace> delete AppDeployment <AppDeployment_name>
  2. Remove the following service account:

    CODE
    kubectl -n <workspace_namespace> delete serviceaccount kaptain-install-job-service-account
  3. 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
  4. 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

  1. Log in to your DKP UI.

  2. From the top menu bar, select your target workspace.

  3. Select Applications from the sidebar menu to browse all applications that can be deployed or uninstalled.

  4. Search for Kaptain in the search bar or by browsing through the applications.

  5. Select the three-dot menu and select Uninstall on the Kaptain card of the instance you would like to delete.

  6. Follow the instructions on the pop-up window to delete Kaptain on your workspace permanently.

  7. 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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.