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

Pod Identity using kubenet #12452

Closed
michelefa1988 opened this issue Jul 2, 2021 · 5 comments
Closed

Pod Identity using kubenet #12452

michelefa1988 opened this issue Jul 2, 2021 · 5 comments

Comments

@michelefa1988
Copy link

michelefa1988 commented Jul 2, 2021

I am trying to setup pod identity on an AKS cluster using terraform. The cluster uses kubenet networking. My goal is that using terraform, I can create a number of identities and assign these identity to pods via arguments.
To me this would be more secure than creating a service principle (inc. clientid/password) which I am able to use to connect to Azure resources (e.g dns zone)

What I am trying to achieve is something similar to https://docs.microsoft.com/en-us/azure/aks/use-azure-ad-pod-identity.

Can you point me in the right direction for enabling this with terraform? I see that something similar has been merged recently (https://github.com/terraform-providers/terraform-provider-azurerm/pull/12225/files#) but I cannot find any mention of it in the documentation.

If there is another (completely different) approach which I am missing out, let me know - I am open to new suggestions

Thanks in advance.

Bes Regards,
Michele

@njuCZ
Copy link
Contributor

njuCZ commented Jul 6, 2021

@michelefa1988 as you can see, this resource is reverted. So terraform does not contains this functionality currently. The reason is this feature is in preview and according to the aks team, current design will be deprecated soon and a new design will be drafted. After that, we will support this feature in terraform.

@michelefa1988
Copy link
Author

@njuCZ what is the best way to set up AKS pod identity with terraform at the moment? Is there any such documentation you can point me too?

I just need a pod to have an assigned identity so that it can access azure key vault.

Thanks

@njuCZ
Copy link
Contributor

njuCZ commented Jul 7, 2021

@michelefa1988 sorry, for now I don't know how to do it either

@tombuildsstuff
Copy link
Contributor

Support for this is being tracked in #9885 - please subscribe to that issue for updates

@github-actions
Copy link

github-actions bot commented Sep 5, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants