uswitch / kiam

Integrate AWS IAM with Kubernetes
Apache License 2.0
1.15k stars 238 forks source link

add rbac #19

Closed allandegnan closed 6 years ago

allandegnan commented 6 years ago

The deploy files don't work on an rbac enabled cluster. From debug logs, it looks like it mostly just needs to do GETs on pods and namespaces.

Will try and figure out the minimum set and PR a file, just trying to track the things I had to do to get this running. :)

pingles commented 6 years ago

Thanks! Yep- it creates caches for pods and namespaces so it only needs to read those (albeit across all namespaces).

pingles commented 6 years ago

@allandegnan do you want to try this image and check you can still deploy to your cluster? I've tried on our alpha cluster and it appears to work fine.

If so, you can change your image to quay.io/uswitch/kiam:rbac which tracks this branch automatically from our Drone build.

I'll do some more monitoring/testing when I'm back next week before merging.

pingles commented 6 years ago

I've merged this in from #23