my flux stops working

Yongsheng Yang 0 Reputation points
2025-05-12T20:04:24.4+00:00

the flux extension stops synch code changes

Code merged but flux stops to make aks cluster change

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,433 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Pramidha Yathipathi 1,135 Reputation points Microsoft External Staff Moderator
    2025-05-12T22:29:00.33+00:00

    Hi Yongsheng Yang,

    Could you please let me know if the flux is running as a pod, if so pls do share the results through private message.
    What specific errors are you seeing when attempting to delete the old one ?

    kubectl describe po <flux_pod> 
    
    kubectl logs <flux_pod>
    

    so that i can assist you further in better.

    Thank You.


  2. Pramidha Yathipathi 1,135 Reputation points Microsoft External Staff Moderator
    2025-05-14T20:46:28.5533333+00:00

    Hi Yongsheng Yang,

    We are looking into the issue meanwhile can you please check and keep me posted on this.
    Check the namespace status and see if finalizers are blocking it:

    kubectl get namespace flux-system -o json | jq '.spec, .status'
    

    If it’s stuck, you'll likely see finalizers in the output like this:

    "finalizers": [

    "kubernetes"

    ]

    Remove Finalizers Manually this step edits the namespace object and removes the finalizers field directly.

    kubectl get namespace flux-system -o json > flux-system.json
    

    Edit the file and remove the finalizers block entirely. It may look like this:

    "spec": {

    "finalizers": ["kubernetes"]

    }

    Make sure it becomes:

    "spec": {}

    Then apply the edited JSON back:

    kubectl replace --raw "/api/v1/namespaces/flux-system/finalize" -f ./flux-system.json
     
    

    Verify that the namespace has been deleted by checking its status.

    kubectl get namespaces

    Please refer the document:

    https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/storage/pods-namespaces-terminating-state

    If you found information helpful, please click "Upvote" on the post to let us know.

    If the issue still persist, feel free to ask us we are happy to assist you.

    Thank You.


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.