Apparently, our Kubernetes setup (self-managed on AWS) does not support IAM roles for service accounts. I guess the system-role can be used via
accesskey
for storage. What is the recommended alternative to use the user-role for workflows? Inject a secret as default environment variable in the k8s plugin?
f
freezing-airport-6809
11/01/2022, 2:08 PM
Multiple options I guess,
Do it outside of Flyte, inject secret using your own webhook
Use flytes global secret system. - can be painful, as you have to add it
Use default env car config, which will get injected all the time
Use pod templates
p
purple-match-42006
11/01/2022, 2:50 PM
Okay, thanks 🙏 Sounds like many options, probably going with the default env vars.
f
freezing-airport-6809
11/01/2022, 2:51 PM
❤️
freezing-airport-6809
11/01/2022, 2:51 PM
If you do find it useful, contribute a doc section - it might help the community
👀 1
l
limited-dog-47035
11/01/2022, 9:17 PM
We're also on self managed kubernetes on AWS, haven't implemented this yet, but something we're looking into https://github.com/jtblin/kube2iam
👍 1
p
purple-match-42006
11/02/2022, 9:55 AM
Oh cool, that looks interesting. I will forward that to our infra team. How do you use user-roles in your setup?
f
freezing-airport-6809
11/02/2022, 1:18 PM
@limited-dog-47035 / @purple-match-42006 do not know if you tried - but at lyft we used kiam (same as kube2iam in the past) - so the Iam role in launch form will pass it correctly - we should check the code
On a side note. These do not scale well