You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a Just In Time feature to create pod identity associations for a service account when needed.
In brief, the (non-working) process looks like this:
Create ServiceAccount
Create Pod Identity Association
Deploy Kubernetes Job using ServiceAccount.
Those steps are executed one after another, and due to some agent (eks-pod-identity-agent) behavior, it doesn't work correctly.
The agent has not properly mutated the pod created for the job (it didn't add the required environment variables). However, if the process waits a few seconds (5-10), the agent will properly mutate the pod, and it can start with proper access to the IAM role.
Working process:
Create ServiceAccount
Create Pod Identity Association
Wait 5 seconds
Deploy Kubernetes Job using ServiceAccount.
So, it seems the agent doesn't check if an association exists in the EKS API if it's unavailable in the agent cache.
Is that intended behavior? Can I somehow mitigate this?
The text was updated successfully, but these errors were encountered:
I have no clue how to determine wether released fix doesn't work for me or is it not yet released :/ closing this issue as it is caused by referenced issue
I'm working on a Just In Time feature to create pod identity associations for a service account when needed.
In brief, the (non-working) process looks like this:
Those steps are executed one after another, and due to some agent (
eks-pod-identity-agent
) behavior, it doesn't work correctly.The agent has not properly mutated the pod created for the job (it didn't add the required environment variables). However, if the process waits a few seconds (5-10), the agent will properly mutate the pod, and it can start with proper access to the IAM role.
Working process:
So, it seems the agent doesn't check if an association exists in the EKS API if it's unavailable in the agent cache.
Is that intended behavior? Can I somehow mitigate this?
The text was updated successfully, but these errors were encountered: