Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external-dns on Azure AKS with managed identity using AKS Kubelet identity does not work if there are additional node pool identities #4132

Closed
thesse1 opened this issue Dec 21, 2023 · 0 comments · Fixed by #4133
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@thesse1
Copy link
Contributor

thesse1 commented Dec 21, 2023

What happened: I have configured external-dns on Azure AKS (with one system node pool and one user node pool) for an Azure DNS zone as per this description with Managed identity using AKS Kubelet identity. It is working fine as long as the node pool VMSSs have only one user-assigned managed identity, the kubelet identity. But when I add another user-assigned managed identity (for example for an Application Gateway Ingress Controller add-on, or for Azure Policies), the external-dns pod does not know anymore which identity to use:

time="2023-12-11T17:10:44Z" level=fatal msg="ManagedIdentityCredential: no default identity is assigned to this resource"

What you expected to happen: The external-dns pod should continue to use the kubelet identity for accessing the DNS zone. Is it somehow possible to mark the kubelet identity as the "default identity"?

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?: No

Environment:

  • External-DNS version (use external-dns --version): docker.io/bitnami/external-dns:0.14.0-debian-11-r2
  • DNS provider: Azure DNS zone
  • Others: AKS with Kubernetes version 1.27.7

Many thanks!

Best regards,
Thomas

@thesse1 thesse1 added the kind/bug Categorizes issue or PR as related to a bug. label Dec 21, 2023
thesse1 added a commit to thesse1/external-dns that referenced this issue Dec 21, 2023
Adding userAssignedIdentityID of the kubelet identity solves the problem with multiple parallel node pool identities - issue kubernetes-sigs#4132
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant