Merge "Added uninstall information"

This commit is contained in:
Zuul 2018-02-02 22:05:54 +00:00 committed by Gerrit Code Review
commit e5168393ac

View File

@ -29,16 +29,34 @@ follows:
Environment tear-down Environment tear-down
===================== =====================
To tear-down, the development environment charts should be removed firstly from To tear-down, the development environment charts should be removed first from
the 'openstack' namespace and then the 'ceph' namespace using the commands from the 'openstack' namespace and then the 'ceph' namespace using the commands from
the `Removing Helm Charts`_ section. Once this has been done the namespaces the `Removing Helm Charts` section. You can run the following commands to
themselves can be cleaned by running: loop through and delete the charts, then stop the kubelet systemd unit and
remove all the containers before removing the ``/var/lib/openstack-helm``
and ``/var/lib/nova`` directory from the host.
.. code-block:: shell .. code-block:: shell
kubectl delete namespace <namespace_name> for NS in openstack ceph; do
helm ls --namespace $NS --short | xargs -L1 -P16 helm delete --purge
done
Final cleanup of the development environment is then performed by removing the kubectl delete namespace openstack
``/var/lib/openstack-helm`` directory from the host. This will restore the
environment back to a clean Kubernetes deployment, that can either be manually kubectl delete namespace ceph
removed or over-written by restarting the deployment process.
sudo systemctl disable kubelet --now
sudo systemctl stop kubelet
sudo docker ps -aq | xargs -L1 -P16 sudo docker rm -f
sudo rm -rf /var/lib/openstack-helm
sudo rm -rf /var/lib/nova
These commands will restore the environment back to a clean Kubernetes
deployment, that can either be manually removed or over-written by
restarting the deployment process.