Skip to content

Commit 5910740

Browse files
committed
update section
1 parent 8395004 commit 5910740

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

articles/azure-arc/kubernetes/conceptual-gitops-flux2.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,22 @@ az k8s-extension create --extension-type microsoft.flux --configuration-settings
609609
az k8s-extension update --configuration-settings multiTenancy.enforce=false -c CLUSTER_NAME -g RESOURCE_GROUP -n flux -t <managedClusters or connectedClusters>
610610
```
611611

612+
## Migrate from Flux v1
613+
614+
If you've been using Flux v1 in Azure Arc-enabled Kubernetes or AKS clusters and want to migrate to using Flux v2 in the same clusters, you first need to delete the Flux v1 `sourceControlConfigurations` from the clusters. The `microsoft.flux` cluster extension won't install if there are Flux v1 `sourceControlConfigurations` resources in the cluster.
615+
616+
Use these Azure CLI commands to find and then delete existing `sourceControlConfigurations` in a cluster:
617+
618+
```azurecli
619+
az k8s-configuration list --cluster-name <Arc or AKS cluster name> --cluster-type <connectedClusters OR managedClusters> --resource-group <resource group name>
620+
az k8s-configuration delete --name <configuration name> --cluster-name <Arc or AKS cluster name> --cluster-type <connectedClusters OR managedClusters> --resource-group <resource group name>
621+
```
622+
623+
You can also use the Azure portal to view and delete existing GitOps configurations in Azure Arc-enabled Kubernetes or AKS clusters.
624+
625+
More information about migration from Flux v1 to Flux v2 is available in the fluxcd project: [Migrate from Flux v1 to v2](https://fluxcd.io/docs/migration/).
626+
627+
612628
## Next steps
613629

614630
* Use our tutorial to learn how to [enable GitOps on your AKS or Azure Arc-enabled Kubernetes clusters](tutorial-use-gitops-flux2.md).

0 commit comments

Comments
 (0)