Skip to content

Instantly share code, notes, and snippets.

@dallasmarlow
Created February 4, 2022 20:18
Show Gist options
  • Save dallasmarlow/8123e5b850cfa2c6b7cc681bf15b9ec2 to your computer and use it in GitHub Desktop.
Save dallasmarlow/8123e5b850cfa2c6b7cc681bf15b9ec2 to your computer and use it in GitHub Desktop.
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: eks-console
rules:
- apiGroups:
- ""
resources:
- nodes
- namespaces
- pods
verbs:
- get
- list
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- statefulsets
- replicasets
verbs:
- get
- list
- apiGroups:
- batch
resources:
- jobs
verbs:
- get
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: eks-console
subjects:
- kind: Group
name: eks-console
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: eks-console
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment