AKS Flux Add-On Deployment Hangs

Alex Rankin 0 Reputation points
2024-12-24T21:05:12.9533333+00:00

Hello all,

I have a Bicep configuration with 'Microsoft.KubernetesConfiguration/fluxConfigurations@2023-05-01' specified. Here is my definition:

resource fluxConfig 'Microsoft.KubernetesConfiguration/fluxConfigurations@2023-05-01' = {
  scope: aksCluster
  name: 'flux-config'
  properties: {
    gitRepository: {
      localAuthRef: 'git-auth-secret'
      repositoryRef: {
        branch: 'main'
      }
      syncIntervalInSeconds: 300
      timeoutInSeconds: 300
      url: 'https://github.com/xxx/flux-infra.git'
    }
    kustomizations: {
      apps: {
        path: './apps/staging'
        prune: true
        timeoutInSeconds: 300
        wait: true
      }
    }
    namespace: 'flux-system'
    sourceKind: 'GitRepository'
  }
}

When I attempt to deploy my configuration, the deployment runs for about an hour before timing out. No additional information is provided by the error.

I am not sure how I should proceed with this issue since no logs indicate what operation is getting stuck. What should I check to help provide insights into this issue? Any help is appreciated! Thanks!

Screenshot 2024-12-24 at 4.03.55 PM

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,207 questions
{count} votes

1 answer

Sort by: Most helpful
  1. anashetty 1,150 Reputation points Microsoft Vendor
    2024-12-27T07:43:59.11+00:00

    Hi Alex Rankin,
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", Accept an answer on Microsoft Q&A I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:
    AKS Flux Add-On Deployment Hangs
    Solution:
    I was able to find the problem. My issue was not first registering the extension:

    resource fluxExtensions 'Microsoft.KubernetesConfiguration/extensions@2023-05-01' = {
      name: 'flux'
      properties: {
        extensionType: 'microsoft.flux'
      }
      scope: aksCluster
    }
    

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.
    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.
    Thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.