Moving from Kube2Iam to Kiam

Moving from Kube2Iam to Kiam

  • December 17, 2018
Table of Contents

Moving from Kube2Iam to Kiam

At Ibotta, we chose kube2iam to assign AWS IAM Roles to containers running in our Kubernetes cluster. Lately, we’ve run into some issues with it—specifically when running a job that scores all of our service repos. This spins up a number of pods in parallel and has often failed to correctly access roles.

After further investigation, the future of the project seems to be uncertain and there are other issues logged around race conditions, etc. After some research, Kiam seems to be a valid alternative. The developers have written a post on their experience of Kube2iam and why they decided to write Kiam which goes into a lot of detail.

We tested Kiam by running the scorecard job in our staging environment first with kube2iam to verify we could reproduce the errors seen and then with kiam—with kiam, there were no pod failures over multiple runs which showed it was an improvement for this use case. There are several stages to replacing kube2iam with Kiam—these are outlined in the following section. Kiam uses a namespace annotation with a regular expression to define what roles are allowed for that namespace.

This gives you the capability to restrict roles to certain namespaces which is nice for security but you must specify a role annotation even if it’s all roles are allowed like this:

Source: medium.com

Share :
comments powered by Disqus

Related Posts

Kubernetes Federation Evolution

Kubernetes Federation Evolution

Deploying applications to a kubernetes cluster is well defined and can in some cases be as simple as kubectl create -f app.yaml. The user’s story to deploy apps across multiple clusters has not been that simple. How should an app workload be distributed?

Read More
eBay Moves Away From OpenStack, Embraces Kubernetes and Docker

eBay Moves Away From OpenStack, Embraces Kubernetes and Docker

As part of an initiative to completely revamp its data center infrastructure, eBay is “re-platforming, using Kubernetes and Docker and moving away from OpenStack,” according to a message to SDxCentral from Mazen Rawashdeh, VP of platform engineering at eBay. In May 2017 at the OpenStack Summit in Boston, an eBay executive said that 95 percent of all eBay traffic ran on its OpenStack cloud, which at the time managed 167,000virtual machines(VMs) and 4,000 applications. But since then, eBay has pivoted away from OpenStack as part of a major three-year infrastructure initiative.

Read More