Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 1.48 KB

uninstall.md

File metadata and controls

36 lines (32 loc) · 1.48 KB

Uninstall

To uninstall TopoLVM, please follow these steps.

Caution

The uninstall procedure cannot be reverted. Think twice whether you can really uninstall TopoLVM.

  1. Delete all the snapshots and PVCs related to TopoLVM.
  2. If the scheduler extender is enabled, edit the kube-scheduler's config file and remove TopoLVM's settings. It may be your help to read the configuration guide.
    • Please be careful if you have any other settings in extenders section of the configuration file. You can remove only the TopoLVM's setting.
  3. Uninstall TopoLVM via Helm.
    # Check the namespace
    helm list -A
    
    # Uninstall. Here we assume the namespace is `topolvm-system`.
    helm uninstall --namespace=topolvm-system topolvm
  4. Remove a label from the target namespace.
    • When legacy mode is disabled:
      # Please change the namespace depending on your environment.
      kubectl label namespace topolvm-system topolvm.io/webhook-
      kubectl label namespace kube-system topolvm.io/webhook-
    • When legacy mode is enabled:
      # Please change the namespace depending on your environment.
      kubectl label namespace topolvm-system topolvm.cybozu.com/webhook-
      kubectl label namespace kube-system topolvm.cybozu.com/webhook-
  5. If LVMd is running as a systemd service, stop it on each node.
    systemctl is-active lvmd.service
    systemctl disable --now lvmd.service