Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

27.3.5. 卸载聚合模式

对于聚合模式,OpenShift Container Platform 安装会附带一个 playbook 来卸载集群中的所有资源和工件。要使用 playbook,请提供用于安装聚合模式目标实例的原始清单文件,更改为 playbook 目录,并运行以下 playbook:

$ cd /usr/share/ansible/openshift-ansible
$ ansible-playbook -i <path_to_inventory_file> playbooks/openshift-glusterfs/uninstall.yml

另外,playbook 支持使用名为 openshift_storage_glusterfs_wipe 的变量,在启用时,销毁用于 Red Hat Gluster Storage 后端存储的块设备上的任何数据。要使用 openshift_storage_glusterfs_wipe 变量,请切换到 playbook 目录并运行以下 playbook:

$ cd /usr/share/ansible/openshift-ansible
$ ansible-playbook -i <path_to_inventory_file> -e \
  "openshift_storage_glusterfs_wipe=true" \
  playbooks/openshift-glusterfs/uninstall.yml
警告

这个过程销毁数据。请小心操作。