Uninstall magasin

You can uninstall magasin either by using the uninstall script script or manually.

0.1 Uninstall magasin using the script (beta)

A simple way of getting rid of an instance of magasin within a kubernetes cluster is to use the uninstaller.

First, verify kubectl is pointing to the target cluster by running the command kubectl cluster-info. Take a look at this link if it is not pointing to the right cluster. Then, proceed to run the uninstaller:

  • Uninstall script using a computer with Debian like GNU/Linux:

    curl -sSL https://unicef.github.io/magasin/uninstall-magasin.sh | bash
  • Uninstall script using a Mac OS computer:

    curl -sSL https://unicef.github.io/magasin/uninstall-magasin.sh | zsh
  • Uninstall script using a Windows computer:

    Use the manual uninstall.

0.2 Advanced use of uninstall-magasin.sh

You can obtain the list of options by adding the -h option

./uninstall-magasin.sh -h
Usage: uninstall-magasin.sh [-c] [-r realm_prefix-realm_postfix (magasin)] [-d] [-h]

This script uninstall all magasin components from a kubernetes cluster

Options:
  -y  Skip prompting questions during uninstall.
  -c  Only check if all pre-requisites are installed in the local machine.
  -r  Realm prefix and suffix (default: magasin). Prefix and suffix are separated by '-'.
        If more than one '-', the last one will be used as separator.
        The realm 'magasin-new-dev' will set 'magasin-new' as prefix and 'dev' as suffix.
  -d  Enable debug mode (displays all commands run).
  -h  Display this help message and exit.

Examples:

  • Check if your computer has all the pre-requisites to run the uninstaller (namely kubectl and helm).

    uninstall-magasin.sh -c
  • Uninstall magasin from a realm that is different from the standard one

    uninstall-magasin.sh -r magasin-dev

1 Manual uninstallation

Verify kubectl is pointing to the right Kubernetes cluster

kubectl cluster-info

Remove each of the components

# helm uninstall <component> --namespace=magasin-<component>
helm uninstall dagster --namespace=magasin-dagster
helm uninstall drill --namespace=magasin-daskhub
helm uninstall daskhub --namespace=magasin-drill
helm unintall superset --namespace=magasin-superset
helm uninstall operator --namespace=magasin-operator
helm uninstall tenant --namespace=magasin-tenant

Delete the namespaces

kubectl delete namespace magasin-dagster
kubectl delete namespace magasin-daskhub
kubectl delete namespace magasin-drill
kubectl delete namespace magasin-superset
kubectl delete namespace magasin-operator
kubectl delete namespace magasin-tenant
kubectl delete namespace magasin