|
1 | 1 | ---
|
2 | 2 | title: "Tutorial: Deploy applications using GitOps with Flux v2"
|
3 | 3 | description: "This tutorial shows how to use GitOps with Flux v2 to manage configuration and application deployment in Azure Arc and AKS clusters."
|
4 |
| -ms.date: 03/22/2024 |
| 4 | +ms.date: 04/30/2024 |
5 | 5 | ms.topic: tutorial
|
6 | 6 | ms.custom: template-tutorial, devx-track-azurecli, references_regions
|
7 | 7 | ---
|
@@ -579,14 +579,40 @@ By default, the `log-level` for Flux controllers is set to `info`. Starting with
|
579 | 579 | --config image-reflector-controller.log-level=<info/error/debug>
|
580 | 580 | ```
|
581 | 581 |
|
582 |
| -Valid values are `debug`, `info`, or `error`. These values are only configurable for the controllers listed above; they don't apply to the `fluxconfig-agent` and `fluxconfig-controller`. |
583 |
| - |
584 |
| -For instance, to change the `log-level` for the `source-controller` and `kustomize-controller`, use the following command: |
| 582 | +Valid values are `debug`, `info`, or `error`. For instance, to change the `log-level` for the `source-controller` and `kustomize-controller`, use the following command: |
585 | 583 |
|
586 | 584 | ```azurecli
|
587 | 585 | az k8s-extension update --resource-group <resource-group> --cluster-name <cluster-name> --cluster-type <cluster-type> --name flux --config source-controller.log-level=error kustomize-controller.log-level=error
|
588 | 586 | ```
|
589 | 587 |
|
| 588 | +The `fluxconfig-agent` and `fluxconfig-controller` only support `info` and `error` log levels. These can be modified by using the k8s-extension command as follows: |
| 589 | + |
| 590 | +```azurecli |
| 591 | +--config fluxconfig-agent.log-level=<info/error> |
| 592 | +
|
| 593 | +--config fluxconfig-controller.log-level=<info/error> |
| 594 | +``` |
| 595 | + |
| 596 | +For example, the following command changes `log-level` to `error`: |
| 597 | + |
| 598 | +```azurecli |
| 599 | +az k8s-extension update --resource-group <resource-group> --cluster-name <cluster-name> --cluster-type <cluster-type> --name flux --config fluxconfig-agent.log-level=error fluxconfig-controller.log-level=error |
| 600 | +``` |
| 601 | + |
| 602 | +### Azure DevOps SSH-RSA deprecation |
| 603 | + |
| 604 | +Azure DevOps [announced the deprecation of SSH-RSA](https://aka.ms/ado-ssh-rsa-deprecation) as a supported encryption method for connecting to Azure repositories using SSH. If you use SSH keys to connect to Azure repositories in Flux configurations, we recommend moving to more secure RSA-SHA2-256 or RSA-SHA2-512 keys. |
| 605 | + |
| 606 | +When reconciling Flux configurations, you might see an error message indicating ssh-rsa is about to be deprecated or is unsupported. If so, update the host key algorithm used to establish SSH connections to Azure DevOps repositories from the Flux `source-controller` and `image-automation-controller` (if enabled) by using the `az k8s-extension update` command. For example: |
| 607 | + |
| 608 | +```azurecli |
| 609 | +az k8s-extension update --cluster-name <cluster-name> --resource-group <resource-group> --cluster-type <cluster-type> --name flux --config source-controller.ssh-host-key-args="--ssh-hostkey-algos=rsa-sha2-512,rsa-sha2-256" |
| 610 | +
|
| 611 | +az k8s-extension update --cluster-name <cluster-name> --resource-group <resource-group> --cluster-type <cluster-type> --name flux --config image-automation-controller.ssh-host-key-args="--ssh-hostkey-algos=rsa-sha2-512,rsa-sha2-256" |
| 612 | +``` |
| 613 | + |
| 614 | +For more information on Azure DevOps SSH-RSA deprecation, see [End of SSH-RSA support for Azure Repos](https://aka.ms/ado-ssh-rsa-deprecation). |
| 615 | + |
590 | 616 | ### Workload identity in AKS clusters
|
591 | 617 |
|
592 | 618 | Starting with [`microsoft.flux` v1.8.0](extensions-release.md#flux-gitops), you can create Flux configurations in [AKS clusters with workload identity enabled](/azure/aks/workload-identity-deploy-cluster). To do so, modify the flux extension as shown in the following steps.
|
|
0 commit comments