Aad-pod-identity: will identity assignment work for cronjob?

Created on 6 Jul 2019  路  7Comments  路  Source: Azure/aad-pod-identity

when I add aadpodidbinding label to CronJob, I don't see identity assignment using the following command:

kubectl get AzureAssignedIdentities --all-namespaces -o yaml

Should I do something different than other normal deployments?

thanks!

All 7 comments

@smartpcr Thank you for using aad-pod-identity. aad-pod-identity is currently supported only for pods. So this will not work for cronjobs.

thanks, got it fixed.

@smartpcr Thank you for using aad-pod-identity. aad-pod-identity is currently supported only for pods. So this will not work for cronjobs.

When will cronjob be supported? I just used a lot of time to get a cronjob to work .. have a dockerized console app that needs to run .. and secrets are stored in keyvault .. don't want to use the FlexVol approach.

Thanks.

Is this supported now?

Same here! I have one Job and one CronJob that fetches data from key vault, when is this going to be available?

Is this supported now?

Same here! I have one Job and one CronJob that fetches data from key vault, when is this going to be available?

Yes, it is working quite fine .. was acutally supported when i added my question .. just never updated in documentation.

Is this supported now?
Same here! I have one Job and one CronJob that fetches data from key vault, when is this going to be available?

Yes, it is working quite fine .. was acutally supported when i added my question .. just never updated in documentation.

@gimlichael would it be possible for you to share your yaml file? I have been looking for documentation on how to use the AzureIdentity (PodIdentity) but I couldn't find anything.

Is this supported now?
Same here! I have one Job and one CronJob that fetches data from key vault, when is this going to be available?

Yes, it is working quite fine .. was acutally supported when i added my question .. just never updated in documentation.

@gimlichael would it be possible for you to share your yaml file? I have been looking for documentation on how to use the AzureIdentity (PodIdentity) but I couldn't find anything.

Just follow the guide here: https://github.com/Azure/aad-pod-identity
In case of issues, they are most likely related to typo or similar.

The powershell script shared in this article helped me: https://dev.to/cmendibl3/aks-read-azure-key-vault-secrets-using-aad-pod-identity-2f3i

Good luck.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phillipgibson picture phillipgibson  路  7Comments

oliverholliday picture oliverholliday  路  6Comments

AndreasM009 picture AndreasM009  路  6Comments

ritazh picture ritazh  路  8Comments

glcx picture glcx  路  3Comments