ACNS observability-only configuration deploys crash-looping acns-security-agent when security is disabled

Preston Rodriguez 0 Reputation points
2026-08-03T18:33:21.7366667+00:00

An AKS cluster configured with Advanced Container Networking Services observability enabled and security disabled deploys the AKS-managed acns-security-agent DaemonSet.

The agent starts the standalone Cilium DNS proxy with an invalid combination of generated settings:

--enable-l7-proxy='false'
--enable-standalone-dns-proxy='true'

The container immediately terminates with:

standalone DNS proxy requires L7 proxy and standalone DNS proxy to be enabled in the configuration

The ARM resource confirms that ACNS security is disabled:

"advancedNetworking": {
  "enabled": true,
  "observability": {
    "enabled": true
  },
  "security": {
    "enabled": false
  }
}

Despite this, AKS deploys the security-specific acns-security-agent DaemonSet and configures the standalone DNS proxy as enabled while disabling its required L7 proxy dependency.

  • AKS Kubernetes version: 1.36.2
  • Region: centralus
  • Network plugin: Azure CNI

Network plugin mode: Overlay

Network dataplane: Cilium

Network policy: Cilium

ACNS observability: Enabled

ACNS security: Disabled

Node OS: Azure Linux

Node image: AKSAzureLinux-V3gen2-202607.09.0

Security-agent image: mcr.microsoft.com/containernetworking/cilium/dns-proxy:v1.19.3-260520

Azure Kubernetes Service
Azure Kubernetes Service

An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.


1 answer

Sort by: Most helpful
  1. Allan Solomon Mejia 2,595 Reputation points
    2026-08-03T18:46:00.8366667+00:00

    Hello @Preston Rodriguez

    Thanks for sharing the detailed configuration and error output.

    Based on your findings, this looks less like a configuration mistake and more like an AKS-managed deployment issue. Since the ARM resource clearly shows ACNS Observability = Enabled and ACNS Security = Disabled, the acns-security-agent DaemonSet shouldn't be deployed with a configuration that requires L7 proxy functionality.

    The crash message:

    standalone DNS proxy requires L7 proxy and standalone DNS proxy to be enabled in the configuration

    suggests the generated Cilium configuration is internally inconsistent. Specifically, enable-standalone-dns-proxy=true is being set while enable-l7-proxy=false, which violates the dependency expected by the agent.

    As a few troubleshooting steps, it would be useful to confirm:

    • Whether this behavior is reproducible on a newly created AKS cluster with the same ACNS settings.
    • If the issue persists after upgrading to the latest supported AKS patch version, in case it's already been addressed.
    • Whether the generated ConfigMap for the security agent contains the same conflicting values, which would further indicate an AKS-managed configuration generation bug.

    If reproducible, this appears to warrant review by the AKS networking/ACNS engineering team, as the managed service is generating an invalid Cilium configuration despite the ARM resource reflecting the intended state.

    Please let us know if you've already tested this on another cluster or AKS version, as that could help determine whether this is a regional regression or a broader product issue.

    Please "Accept the Answer" if this information helped you. This will help us and others in the community as well.

    Was this answer helpful?


Your answer

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