<p>I want to allow a user to do things in the Kubernetes cluster for EKS for example: apply deployment, create secrets, create volumes etc. 
I'm not sure which role to use for that. I don't want to allow users:
to create clusters, delete clusters, list cluster only perform the Kubernetes operations within the cluster. </p>

<p>As far as I know the permissions to the cluster are performed with Heptio authenticator. I believe I am missing something here but can't figure out what. </p>

Josh Woodcock
<p>This <a href="https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html" rel="nofollow noreferrer">link</a> is the right one to add an AWS IAM user or AWS Role to a given K8S Role. </p>

<p>Let's say that you wanted to create a new K8S Role to only have read permission, called <strong><em>pod-reader</em></strong></p>

<pre><code>kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  namespace: default
  name: pod-reader
rules:
- apiGroups: [""] # "" indicates the core API group
  resources: ["pods"]
  verbs: ["get", "watch", "list"]
</code></pre>

<p>After creating the role, you need to give the permission to your IAM user to assume that role. This is easily doable doing:</p>

<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: aws-auth
  namespace: kube-system
data:
  mapUsers: |
    - userarn: arn:aws:iam::270870090353:user/franziska_adler
      username: iam_user_name
      groups:
        - pod-reader
</code></pre>

<p>More information about K8S RBAC Authorization <a href="https://kubernetes.io/docs/reference/access-authn-authz/rbac/" rel="nofollow noreferrer">here</a></p>
