Skip to content

kubectl inside a pod with workload identity #335

Closed Answered by amayacitta
amayacitta asked this question in Q&A
Discussion options

You must be logged in to vote

Fix was easy once I slept, although I had assigned "Azure Kubernetes Service Cluster Admin Role" via IAM in Azure, this had not assigned the Object ID of the managed identity to the relevent role binding within AKS. Not sure why, it works automatically for groups, maybe not for managed identities. I assume users would also work fine.

I create a role binding that used the object ID of the managed identity and it now works fine. Clue was searching Azure AD for the un-resolved ID that Kubernetes was throwing at me. The search came back with the managed identity and the rest fell into place with the role binding.

An alternative would be to drop the managed identity into an Azure AD group and …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amayacitta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant