Skip to content

Instantly share code, notes, and snippets.

@karthikeayan
Created December 28, 2018 14:03
Show Gist options
  • Select an option

  • Save karthikeayan/4fa3e1ea015a4fede876064dd44b2892 to your computer and use it in GitHub Desktop.

Select an option

Save karthikeayan/4fa3e1ea015a4fede876064dd44b2892 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube2iam
namespace: kube-system
---
apiVersion: v1
items:
- apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: kube2iam
rules:
- apiGroups: [""]
resources: ["namespaces","pods"]
verbs: ["get","watch","list"]
- apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kube2iam
subjects:
- kind: ServiceAccount
name: kube2iam
namespace: kube-system
roleRef:
kind: ClusterRole
name: kube2iam
apiGroup: rbac.authorization.k8s.io
kind: List
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment