Uninstalling the {zero-trust-full}
You can remove the Zero Trust Workload Identity Manager from OpenShift Container Platform by uninstalling the Operator and removing its related resources.
Uninstalling the Zero Trust Workload Identity Manager
You can uninstall the Zero Trust Workload Identity Manager by using the web console.
-
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.
-
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.
-
Uninstalling Zero Trust Workload Identity Manager resources by using the CLI
After you have uninstalled the Zero Trust Workload Identity Manager, you have the option to delete its associated resources from your cluster.
-
You have access to the cluster with
cluster-adminprivileges.
-
Uninstall the operands by running each of the following commands:
-
Delete the
SpireOIDCDiscoveryProvidercluster by running the following command:$ oc delete SpireOIDCDiscoveryProvider cluster -
Delete the
SpiffeCSIDrivercluster by running the following command:$ oc delete SpiffeCSIDriver cluster -l=app.kubernetes.io/name=zero-trust-workload-identity-manager -
Delete the
SpireAgentcluster by running the following command:$ oc delete SpireAgent cluster -
Delete the
SpireServercluster by running the following command:$ oc delete SpireServer cluster -
Delete the
ZeroTrustWorkloadIdentityManagercluster by running the following command:$ oc delete ZeroTrustWorkloadIdentityManager cluster -
Delete the persistent volume claim (PVC) by running the following command:
$ oc delete pvc -l=app.kubernetes.io/name=spire-server -
Delete the service by running the following command:
$ oc delete service -l=app.kubernetes.io/name=zero-trust-workload-identity-manager -n zero-trust-workload-identity-manager -
Delete the namespace by running the following command:
$ oc delete ns zero-trust-workload-identity-manager -
Delete the cluster role by running the following command:
$ oc delete clusterrole -l=app.kubernetes.io/name=zero-trust-workload-identity-manager -
Delete the admission wehhook configuration by running the following command:
$ oc delete validatingwebhookconfigurations -l=app.kubernetes.io/name=zero-trust-workload-identity-manager
-
-
Delete the custom resource definitions (CRDs) by running each of the following commands:
-
Delete the SPIRE Server CRD by running the following command:
$ oc delete crd spireservers.operator.openshift.io -
Delete the SPIRE Agent CRD by running the following command:
$ oc delete crd spireagents.operator.openshift.io -
Delete the SPIFFEE CSI Drivers CRD by running the following command:
$ oc delete crd spiffecsidrivers.operator.openshift.io -
Delete the SPIRE OIDC Discovery Provider CRD by running the following command:
$ oc delete crd spireoidcdiscoveryproviders.operator.openshift.io -
Delete the SPIRE and SPIFFE cluster federated trust domains CRD by running the following command:
$ oc delete crd clusterfederatedtrustdomains.spire.spiffe.io -
Delete the cluster SPIFFE IDs CRD by running the following command:
$ oc delete crd clusterspiffeids.spire.spiffe.io -
Delete the SPIRE and SPIFFE cluster static entries CRD by running the following command:
$ oc delete crd clusterstaticentries.spire.spiffe.io -
Delete the Zero Trust Workload Identity Manager CRD by running the following command:
$ oc delete crd zerotrustworkloadidentitymanagers.operator.openshift.io
-
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.