Este contenido no está disponible en el idioma seleccionado.
Chapter 6. Completing the migration
6.1. Completing the Migration Copiar enlaceEnlace copiado en el portapapeles!
At this stage, you have completed the migration process. It is safe to remove OpenShift Service Mesh 2.6.9.
Optionally, if you already have Kiali installed, before you delete OpenShift Service Mesh 2.6.9, you can verify that all data plane namespaces have been migrated by checking the Kiali Mesh page. To learn more about the Kiali Mesh page, see "Istio infrastructure status (Kiali.io)".
6.1.1. Migrating network policies after migrating deployment and workloads Copiar enlaceEnlace copiado en el portapapeles!
If you did not re-create your network policies before you migrated your deployment and workloads, you can re-create your network policies after migrating.
Prerequisites
- You have migrated your deployment.
- You have migrated your workloads.
Procedure
- Recreate necessary network policies in the new OpenShift Service Mesh 3 control plane namespace.
- Recreate network policies for each namespace that was part of the OpenShift Service Mesh 2 mesh.
Update labels.
Update corresponding network policy selectors to match the new labels.
NoteUse a label scoped specifically to your mesh that you can reuse for discovery selectors.
6.1.2. Completing a multitenant deployment with cert-manager Copiar enlaceEnlace copiado en el portapapeles!
Prerequisites
- You have migrated a multitenant deployment with the cert-manager and istio-csr tools.
Procedure
- Verify that your new injection label is present in all workload namespaces.
Update the
app.controller.configmapNamespaceSelectorfield by running the following command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Next steps
- Remove OpenShift Service Mesh 2
6.1.3. Remove the Service Mesh 2.6 control plane Copiar enlaceEnlace copiado en el portapapeles!
After you have migrated all your workloads and gateways, you can remove the OpenShift Service Mesh 2.x control plane.
Prerequisites
- You have completed migrating your workloads.
- You have completed migrating your gateways.
- You are logged in to the OpenShift Container Platform web console as a user with the cluster-admin role.
Depending on how you created ServiceMeshMember and ServiceMeshMemberRoll resources, those resources might be removed automatically with removal of the ServiceMeshControlPlane resource.
Procedure
Find all Service Mesh 2.6 resources by running the following command:
oc get smcp,smm,smmr -A
$ oc get smcp,smm,smmr -ACopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove all
ServiceMeshControlPlaneresources by running the following command:oc delete smcp --all -A
$ oc delete smcp --all -ACopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove all
ServiceMeshMemberRollresources by running the following command:oc delete smmr --all -A
$ oc delete smmr --all -ACopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove all
ServiceMeshMemberresources by running the following command:oc delete smm --all -A
$ oc delete smm --all -ACopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that all resources were removed by running the following command:
oc get smcp,smm,smmr -A
$ oc get smcp,smm,smmr -ACopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
No resources found
No resources foundCopy to Clipboard Copied! Toggle word wrap Toggle overflow
6.1.4. Remove the Service Mesh 2.6 operator and custom resource definitions Copiar enlaceEnlace copiado en el portapapeles!
After you remove the Red Hat OpenShift Service Mesh 2 ServiceMeshControlplane resource, and all other OpenShift Service Mesh 2 resources, you can remove the OpenShift Service Mesh 2.6 Operator and custom resource definitions (CRDs).
Prerequisites
- You have completed migrating your workloads.
- You have completed migrating your gateways.
-
You have removed the OpenShift Service Mesh 2
ServiceMeshControlPlaneresource. - You have removed all other OpenShift Service Mesh 2 resources.
- You are logged in to the OpenShift Container Platform web console as a user with the cluster-admin role.
Procedure
Check that there are no Red Hat OpenShift Service Mesh 2.6 resources left by running the following command:
oc get smcp,smm,smmr -A
$ oc get smcp,smm,smmr -ACopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
No resources found
No resources foundCopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the Operator by running the following commands:
Find the Operator subscription:
csv=$(oc get subscription servicemeshoperator -n openshift-operators -o yaml | grep currentCSV | cut -f 2 -d ':')
csv=$(oc get subscription servicemeshoperator -n openshift-operators -o yaml | grep currentCSV | cut -f 2 -d ':')Copy to Clipboard Copied! Toggle word wrap Toggle overflow Delete the subscription:
oc delete subscription servicemeshoperator -n openshift-operators
$ oc delete subscription servicemeshoperator -n openshift-operatorsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Delete the
clusterserviceversionCSV:oc delete clusterserviceversion $csv -n openshift-operators
$ oc delete clusterserviceversion $csv -n openshift-operatorsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Remove
maistraCRDs by running the following command:oc get crds -o name | grep ".*\.maistra\.io" | xargs -r -n 1 oc delete
$ oc get crds -o name | grep ".*\.maistra\.io" | xargs -r -n 1 oc deleteCopy to Clipboard Copied! Toggle word wrap Toggle overflow
6.1.5. Remove the Maistra labels Copiar enlaceEnlace copiado en el portapapeles!
After you have removed all OpenShift Service Mesh 2 resources, removed the OpenShift Service Mesh 2 Operator, and OpenShift Service Mesh 2 custom resource definitions (CRDs), you can choose to remove namespace labels created during the migration.
Prerequisites
- You have completed migrating your workloads.
- You have completed migrating your gateways.
-
You have removed the OpenShift Service Mesh 2
ServiceMeshControlPlaneresource. - You have removed all other OpenShift Service Mesh 2 resources.
- You have removed the OpenShift Service Mesh 2 Operator.
- You have removed the OpenShift Service Mesh 2 CRDs.
- You are logged in to the OpenShift Container Platform web console as a user with the cluster-admin role.
Procedure
Verify that all OpenShift Service Mesh 2.6 resources have been removed by running the following command:
oc get smcp,smm,smmr -A
$ oc get smcp,smm,smmr -ACopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
No resources found
No resources foundCopy to Clipboard Copied! Toggle word wrap Toggle overflow Find namespaces with the
maistra.io/ignore-namespace="true"label by running the following command:oc get namespace -l maistra.io/ignore-namespace="true"
$ oc get namespace -l maistra.io/ignore-namespace="true"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
NAME STATUS AGE bookinfo Active 127m
NAME STATUS AGE bookinfo Active 127mCopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the label by running the following command:
oc label namespace bookinfo maistra.io/ignore-namespace-
$ oc label namespace bookinfo maistra.io/ignore-namespace-Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
namespace/bookinfo unlabeled
namespace/bookinfo unlabeledCopy to Clipboard Copied! Toggle word wrap Toggle overflow