Skip to content

Commit 3a499f3

Browse files
authored
Merge pull request #188779 from csand-msft/main
Move troubleshooting section to troubleshooting doc
2 parents 83b8b66 + 79c9bc7 commit 3a499f3

File tree

3 files changed

+38
-45
lines changed

3 files changed

+38
-45
lines changed

articles/azure-arc/kubernetes/faq.md

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ services: azure-arc
44
ms.service: azure-arc
55
ms.date: 02/15/2022
66
ms.topic: conceptual
7-
author: csand-msft
8-
ms.author: csand
97
description: "This article contains a list of frequently asked questions related to Azure Arc-enabled Kubernetes and Azure GitOps"
10-
keywords: "Kubernetes, Arc, Azure, containers, configuration, GitOps, Flux, faq"
8+
keywords: "Kubernetes, Arc, Azure, containers, configuration, GitOps, faq"
119
---
1210

13-
# Frequently Asked Questions - Azure Arc-enabled Kubernetes
11+
# Frequently Asked Questions - Azure Arc-enabled Kubernetes and GitOps
1412

15-
This article addresses frequently asked questions about Azure Arc-enabled Kubernetes.
13+
This article addresses frequently asked questions about Azure Arc-enabled Kubernetes and GitOps.
1614

1715
## What is the difference between Azure Arc-enabled Kubernetes and Azure Kubernetes Service (AKS)?
1816

@@ -81,32 +79,6 @@ This feature applies baseline configurations (like network policies, role bindin
8179

8280
The compliance state of each GitOps configuration is reported back to Azure. This lets you keep track of any failed deployments.
8381

84-
## Error installing the microsoft.flux extension (Flux v2)
85-
86-
The `microsoft.flux` extension installs the Flux controllers and Azure GitOps agents into your Azure Arc-enabled Kubernetes or AKS clusters. If you experience an error during installation below are some troubleshooting actions.
87-
88-
* Error message
89-
90-
```console
91-
{'code':'DeploymentFailed','message':'At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.','details':[{'code':'ExtensionCreationFailed','message':' Request failed to https://management.azure.com/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.ContainerService/managedclusters/<CLUSTER_NAME>/extensionaddons/flux?api-version=2021-03-01. Error code: BadRequest. Reason: Bad Request'}]}
92-
```
93-
94-
* For AKS cluster, assure that the subscription has the following feature flag enabled: `Microsoft.ContainerService/AKS-ExtensionManager`.
95-
96-
```console
97-
az feature register --namespace Microsoft.ContainerService --name AKS-ExtensionManager
98-
```
99-
100-
* Force delete the extension.
101-
102-
```console
103-
az k8s-extension delete --force -g <RESOURCE_GROUP> -c <CLUSTER_NAME> -n flux -t <managedClusters OR connectedClusters>
104-
```
105-
106-
* Assure that the cluster does not have any policies that restrict creation of the `flux-system` namespace or resources in that namespace.
107-
108-
After you have verified the above, you can re-install the extension.
109-
11082
## Does Azure Arc-enabled Kubernetes store any customer data outside of the cluster's region?
11183

11284
The feature to enable storing customer data in a single region is currently only available in the Southeast Asia Region (Singapore) of the Asia Pacific Geo and Brazil South (Sao Paulo State) Region of Brazil Geo. For all other regions, customer data is stored in Geo. For more information, see [Trust Center](https://azure.microsoft.com/global-infrastructure/data-residency/).

articles/azure-arc/kubernetes/troubleshooting.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ title: "Troubleshoot common Azure Arc-enabled Kubernetes issues"
33
services: azure-arc
44
ms.service: azure-arc
55
#ms.subservice: azure-arc-kubernetes coming soon
6-
ms.date: 12/07/2021
6+
ms.date: 02/15/2022
77
ms.topic: article
8-
description: "Troubleshooting common issues with Azure Arc-enabled Kubernetes clusters."
9-
keywords: "Kubernetes, Arc, Azure, containers"
8+
description: "Troubleshooting common issues with Azure Arc-enabled Kubernetes clusters and GitOps."
9+
keywords: "Kubernetes, Arc, Azure, containers, GitOps, Flux"
1010
---
1111

12-
# Azure Arc-enabled Kubernetes troubleshooting
12+
# Azure Arc-enabled Kubernetes and GitOps troubleshooting
1313

14-
This document provides troubleshooting guides for issues with connectivity, permissions, and agents.
14+
This document provides troubleshooting guides for issues with Azure Arc-enabled Kubernetes connectivity, permissions, and agents. It also provides troubleshooting guides for Azure GitOps, which can be used in either Azure Arc-enabled Kubernetes or Azure Kubernetes Service (AKS) clusters.
1515

1616
## General troubleshooting
1717

@@ -216,12 +216,15 @@ metadata:
216216

217217
### Installing the `microsoft.flux` extension (Flux v2)
218218

219-
If the `microsoft.flux` extension is in a failed state, you can run a script to investigate. The cluster-type parameter can be set to `connectedClusters` for Arc cluster or `managedClusters` for AKS cluster. The name of the `microsoft.flux` extension will be "flux" if the extension was installed automatically during creation of a `fluxConfigurations` resource. Look in the "statuses" object for information.
219+
The `microsoft.flux` extension installs the Flux controllers and Azure GitOps agents into your Azure Arc-enabled Kubernetes or Azure Kubernetes Service (AKS) clusters. If the extension is not already installed in a cluster and you create a GitOps configuration resource for that cluster, the extension will be installed automatically.
220+
221+
If you experience an error during installation or if the extension is in a failed state, you can first run a script to investigate. The cluster-type parameter can be set to `connectedClusters` for an Arc-enabled cluster or `managedClusters` for an AKS cluster. The name of the `microsoft.flux` extension will be "flux" if the extension was installed automatically during creation of a GitOps configuration. Look in the "statuses" object for information.
220222

221223
One example:
222224

223225
```console
224-
az k8s-extension show --resource-group RESOURCE_GROUP --cluster-name CLUSTER_NAME --cluster-type connectedClusters -n flux
226+
az k8s-extension show -g <RESOURCE_GROUP> -c <CLUSTER_NAME> -n flux -t <connectedClusters or managedClusters>
227+
flux
225228

226229
...
227230
"statuses": [
@@ -238,7 +241,7 @@ az k8s-extension show --resource-group RESOURCE_GROUP --cluster-name CLUSTER_NAM
238241
Another example:
239242

240243
```console
241-
az k8s-extension show --resource-group RESOURCE_GROUP --cluster-name CLUSTER_NAME --cluster-type connectedClusters -n flux
244+
az k8s-extension show -g <RESOURCE_GROUP> -c <CLUSTER_NAME> -n flux -t <connectedClusters or managedClusters>
242245

243246
"statuses": [
244247
{
@@ -251,19 +254,37 @@ az k8s-extension show --resource-group RESOURCE_GROUP --cluster-name CLUSTER_NAM
251254
]
252255
```
253256

254-
In both of these cases, delete the `flux-system` namespace and uninstall the Helm release. This should resolve the extension installation issue.
257+
Another example from the portal:
255258

256259
```console
257-
kubectl delete namespaces flux-system -A
258-
helm uninstall flux -n -flux-system
260+
{'code':'DeploymentFailed','message':'At least one resource deployment operation failed. Please list
261+
deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.
262+
','details':[{'code':'ExtensionCreationFailed', 'message':' Request failed to https://management.azure.com/
263+
subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.ContainerService/
264+
managedclusters/<CLUSTER_NAME>/extensionaddons/flux?api-version=2021-03-01. Error code: BadRequest.
265+
Reason: Bad Request'}]}
259266
```
260267

261-
If that doesn't resolve the issue, you can delete the extension. After deleting the extension, you can either [re-create a flux configuration](./tutorial-use-gitops-flux2.md) which will install the flux extension automatically or you can re-install the flux extension manually.
268+
For all these cases, possible remediation actions are to force delete the extension, uninstall the Helm release, and delete the `flux-system` namespace from the cluster.
262269

263270
```console
264-
az k8s-extension delete --resource-group RESOURCE_GROUP --cluster-name CLUSTER_NAME --cluster-type connectedClusters –name flux
271+
az k8s-extension delete --force -g <RESOURCE_GROUP> -c <CLUSTER_NAME> -n flux -t <managedClusters OR connectedClusters>
272+
helm uninstall flux -n flux-system
273+
kubectl delete namespaces flux-system
265274
```
266275

276+
Some other aspects to consider:
277+
278+
* For AKS cluster, assure that the subscription has the following feature flag enabled: `Microsoft.ContainerService/AKS-ExtensionManager`.
279+
280+
```console
281+
az feature register --namespace Microsoft.ContainerService --name AKS-ExtensionManager
282+
```
283+
284+
* Assure that the cluster does not have any policies that restrict creation of the `flux-system` namespace or resources in that namespace.
285+
286+
With these actions accomplished you can either [re-create a flux configuration](./tutorial-use-gitops-flux2.md) which will install the flux extension automatically or you can re-install the flux extension manually.
287+
267288
## Monitoring
268289

269290
Azure Monitor for containers requires its DaemonSet to be run in privileged mode. To successfully set up a Canonical Charmed Kubernetes cluster for monitoring, run the following command:

articles/governance/policy/concepts/policy-for-kubernetes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ For more information about troubleshooting the Add-on for Kubernetes, see the
872872
of the Azure Policy troubleshooting article.
873873
874874
For Azure Policy extension for Arc extension related issues, please see:
875-
- [Azure Arc enabled Kubernetes troubleshooting](../../../azure-arc/kubernetes/troubleshooting.md#azure-arc-enabled-kubernetes-troubleshooting)
875+
- [Azure Arc enabled Kubernetes troubleshooting](../../../azure-arc/kubernetes/troubleshooting.md)
876876
877877
For Azure Policy related issues, please see:
878878
- [Inspect Azure Policy logs](#logging)

0 commit comments

Comments
 (0)