You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is roughly what I would try first to achieve this:
Create an AKS cluster with the old AzureManagedControlPlane API
Pause the cluster (set the Cluster's spec.paused=true)
asoctl import the resource group (which should also capture the managed cluster and agent pools)
Include the -a sigs.k8s.io/cluster-api-provider-azure-adopt=true flag to annotate the resources
Apply the asoctl imported resources to the cluster
CAPZ should automatically create all the necessary CAPI/CAPZ resources to represent the cluster
Delete the old AzureManagedControlPlane-backed Cluster
This might hang because the cluster is paused, so one way to get past that is to delete and remove all finalizers from the Cluster and all of its child resources manually.
Creating a new management cluster for the new Cluster may make this easier because then the old management cluster can be deleted entirely without trying to trace everything that is ultimately owned by the old Cluster.
Describe the solution you'd like
Provide more guidance on a supported migration for production clusters using the current CAPZ definitions to the ASO-based API definition. Add this guidance to what is exists here: https://capz.sigs.k8s.io/topics/managedcluster.html?highlight=import#option-1-using-the-experimental-aso-based-api
The text was updated successfully, but these errors were encountered: