Uninstalling the Zero Trust Workload Identity Manager { #zero-trust-manager-uninstall_{context} }¶
To remove the Zero Trust Workload Identity Manager from OpenShift Container Platform, uninstall the Operator and delete its related resources. This process removes the component from your cluster.
Uninstall the Zero Trust Workload Identity Manager¶
To remove the Zero Trust Workload Identity Manager from your cluster, uninstall the Operator using the web console. This helps you clean up resources and delete the service from your environment.
Prerequisites
- You have access to the cluster with
cluster-adminprivileges. - You have access to the OpenShift Container Platform web console.
- The Zero Trust Workload Identity Manager is installed.
Procedure
-
Log in to the OpenShift Container Platform web console.
-
Uninstall the Zero Trust Workload Identity Manager.
- Go to Ecosystem → Installed Operators.
- Click the Options menu next to the Zero Trust Workload Identity Manager entry, and then click Uninstall Operator.
- In the confirmation dialog, click Uninstall.
Verification
-
Verify that the Zero Trust Workload Identity Manager Operator is uninstalled.
Uninstall Zero Trust Workload Identity Manager resources by using the CLI¶
Remove Zero Trust Workload Identity Manager resources from your cluster using the CLI. This deletes the remaining operands and definitions to help ensure a clean environment after you uninstall the product.
Prerequisites
- You have access to the cluster with
cluster-adminprivileges.
Procedure
-
Uninstall the operands by running each of the following commands:
-
Delete the
SpireOIDCDiscoveryProvidercluster by running the following command: -
Delete the
SpiffeCSIDrivercluster by running the following command: -
Delete the
SpireAgentcluster by running the following command: -
Delete the
SpireServercluster by running the following command: -
Delete the
ZeroTrustWorkloadIdentityManagercluster by running the following command: -
Delete the persistent volume claim (PVC) by running the following command:
-
Delete the service by running the following command:
-
Delete the namespace by running the following command:
-
Delete the cluster role by running the following command:
-
Delete the admission webhook configuration by running the following command:
-
-
Delete the custom resource definitions (CRDs) by running each of the following commands:
-
Delete the SPIRE Server CRD by running the following command:
-
Delete the SPIRE Agent CRD by running the following command:
-
Delete the SPIFFEE CSI Drivers CRD by running the following command:
-
Delete the SPIRE OIDC Discovery Provider CRD by running the following command:
-
Delete the SPIRE and SPIFFE cluster federated trust domains CRD by running the following command:
-
Delete the cluster SPIFFE IDs CRD by running the following command:
-
Delete the SPIRE and SPIFFE cluster static entries CRD by running the following command:
-
Delete the Zero Trust Workload Identity Manager CRD by running the following command:
-
Verification
To verify that the resources have been deleted, replace each oc delete command with oc get, and then run the command. If no resources are returned, the deletion was successful.