第6章 Red Hat Advanced Cluster Security for Kubernetes のアンインストール
Red Hat Advanced Cluster Security for Kubernetes をインストールすると、以下が作成されます。
-
Operator のインストール方法を選択した場合は、Operator がインストールされる
rhacs-operator
という namespace -
stackrox
と呼ばれる namespace、または Central および SecuredCluster カスタムリソースを作成した別の namespace -
すべてのコンポーネントの
PodSecurityPolicy
および Kubernetes ロールベースアクセス制御 (RBAC) オブジェクト - 生成されたネットワークポリシーで使用するための namespace の追加ラベル
- アプリケーションカスタムリソース定義 (CRD) (存在しない場合)
Red Hat Advanced Cluster Security for Kubernetes をアンインストールするには、これらのアイテムをすべて削除する必要があります。
6.1. namespace の削除
OpenShift Container Platform または Kubernetes コマンドラインインターフェイスを使用して、Red Hat Advanced Cluster Security for Kubernetes が作成する namespace を削除できます。
手順
stackrox
namespace を削除します。OpenShift Container Platform
$ oc delete namespace stackrox
Kubernetes の場合:
$ kubectl delete namespace stackrox
別の namespace に RHACS をインストールした場合は、delete
コマンドでその namespace の名前を使用してください。