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
# Tutorial: Use GitOps with Flux v2 in Azure Arc-enabled Kubernetes or AKS clusters (public preview)
12
+
# Tutorial: Use GitOps with Flux v2 in Azure Arc-enabled Kubernetes or AKS clusters (preview)
13
13
14
14
GitOps with Flux v2 can be enabled in Azure Kubernetes Service (AKS) managed clusters or Azure Arc-enabled Kubernetes connected clusters as a cluster extension. After the `microsoft.flux` cluster extension is installed, you can create one or more `fluxConfigurations` resources that sync your Git repository sources to the cluster and reconcile the cluster to the desired state. With GitOps, you can use your Git repository as the source of truth for cluster configuration and application deployment.
15
15
@@ -18,7 +18,7 @@ This tutorial describes how to use GitOps in a Kubernetes cluster. Before you di
18
18
General availability of Azure Arc-enabled Kubernetes includes GitOps with Flux v1. The public preview of GitOps with Flux v2, documented here, is available in both AKS and Azure Arc-enabled Kubernetes. Flux v2 is the way forward, and Flux v1 will eventually be deprecated.
19
19
20
20
>[!IMPORTANT]
21
-
>GitOps with Flux v2 is in public preview. In preparation for general availability, features are still being added to the preview. One important feature, multi-tenancy, could affect some users when it is released. To prepare yourself for the release of multi-tenancy, [please review these details](#multi-tenancy).
21
+
>GitOps with Flux v2 is in public preview. In preparation for general availability, features are still being added to the preview. One recently-released feature, multi-tenancy, could affect some users. To understand how to work with multi-tenancy, [please review these details](#multi-tenancy).
22
22
23
23
## Prerequisites
24
24
@@ -78,7 +78,7 @@ GitOps is currently supported in the regions that Azure Arc-enabled Kubernetes s
78
78
79
79
### Network requirements
80
80
81
-
The GitOps agents require TCP on port 443 (`https://:443`) to function. The agents also require the following outbound URLs:
81
+
The GitOps agents require outbound (egress) TCP to the repo source on either port 22 (SSH) or port 443 (HTTPS) to function. The agents also require the following outbound URLs:
@@ -90,7 +90,7 @@ The GitOps agents require TCP on port 443 (`https://:443`) to function. The agen
90
90
## Enable CLI extensions
91
91
92
92
>[!NOTE]
93
-
>The `k8s-configuration` CLI extension has been upgraded to manage either Flux v2 or Flux v1 configurations. Flux v2 is an important upgrade to Flux v1, and eventually Azure will stop supporting GitOps with Flux v1. Begin using Flux v2 as soon as possible.
93
+
>The `k8s-configuration` CLI extension manages either Flux v2 or Flux v1 configurations. Eventually Azure will stop supporting GitOps with Flux v1, so begin using Flux v2 as soon as possible.
94
94
95
95
Install the latest `k8s-configuration` and `k8s-extension` CLI extension packages:
96
96
@@ -969,7 +969,7 @@ The Azure portal is useful for managing GitOps configurations and the Flux exten
969
969
970
970
The portal provides the overall compliance state of the cluster. The Flux objects that have been deployed to the cluster are also shown, along with their installation parameters, compliance state, and any errors.
971
971
972
-
You can also use the portal to create and delete GitOps configurations.
972
+
You can also use the portal to create, update, and delete GitOps configurations.
973
973
974
974
## Manage cluster configuration by using the Flux Kustomize controller
975
975
@@ -1015,10 +1015,10 @@ By using this annotation, the HelmRelease that is deployed will be patched with
1015
1015
1016
1016
## Multi-tenancy
1017
1017
1018
-
Flux v2 supports [multi-tenancy](https://github.com/fluxcd/flux2-multi-tenancy) in [version 0.26](https://fluxcd.io/blog/2022/01/january-update/#flux-v026-more-secure-by-default). This capability will be integrated into Azure GitOps with Flux v2 prior to general availability.
1018
+
Flux v2 supports [multi-tenancy](https://github.com/fluxcd/flux2-multi-tenancy) in [version 0.26](https://fluxcd.io/blog/2022/01/january-update/#flux-v026-more-secure-by-default). This capability has been integrated into Azure GitOps with Flux v2.
1019
1019
1020
1020
>[!NOTE]
1021
-
>You need to prepare for the multi-tenancy feature release if you have any cross-namespace sourceRef for HelmRelease, Kustomization, ImagePolicy, or other objects, or [if you use a Kubernetes version less than 1.20.6](https://fluxcd.io/blog/2022/01/january-update/#flux-v026-more-secure-by-default). To prepare, take these actions:
1021
+
>For the multi-tenancy feature you need to know if your manifests contain any cross-namespace sourceRef for HelmRelease, Kustomization, ImagePolicy, or other objects, or [if you use a Kubernetes version less than 1.20.6](https://fluxcd.io/blog/2022/01/january-update/#flux-v026-more-secure-by-default). To prepare, take these actions:
1022
1022
>
1023
1023
> * Upgrade to Kubernetes version 1.20.6 or greater.
1024
1024
> * In your Kubernetes manifests assure that all sourceRef are to objects within the same namespace as the GitOps configuration.
@@ -1111,7 +1111,7 @@ spec:
1111
1111
1112
1112
### Opt out of multi-tenancy
1113
1113
1114
-
Multi-tenancy will be enabled by default to assure security by default in your clusters. However, if you need to disable multi-tenancy, you can opt out by creating or updating the `microsoft.flux` extension in your clusters with "--configuration-settings multiTenancy.enforce=false".
1114
+
When the `microsoft.flux` extension is installed, multi-tenancy is enabled by default to assure security by default in your clusters. However, if you need to disable multi-tenancy, you can opt out by creating or updating the `microsoft.flux` extension in your clusters with "--configuration-settings multiTenancy.enforce=false".
1115
1115
1116
1116
```console
1117
1117
az k8s-extension create --extension-type microsoft.flux --configuration-settings multiTenancy.enforce=false -c CLUSTER_NAME -g RESOURCE_GROUP -n flux -t <managedClusters or connectedClusters>
@@ -1123,7 +1123,7 @@ az k8s-extension update --configuration-settings multiTenancy.enforce=false -c C
1123
1123
1124
1124
## Migrate from Flux v1
1125
1125
1126
-
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 be installed if there are `sourceControlConfigurations` resources installed in the cluster.
1126
+
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 installed in the cluster.
1127
1127
1128
1128
Use these az CLI commands to find and then delete existing `sourceControlConfigurations` in a cluster:
0 commit comments