Skip to content

Instantly share code, notes, and snippets.

@quangthe
Created May 11, 2022 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quangthe/dcfb90f711d7edb94d50da411ddd1493 to your computer and use it in GitHub Desktop.
Save quangthe/dcfb90f711d7edb94d50da411ddd1493 to your computer and use it in GitHub Desktop.
AWS EKS auth: dev readonly
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: dev-readonly-role
namespace: dev
rules:
- apiGroups:
- ""
resources:
- nodes
- namespaces
- pods
- services
- replicationcontrollers
verbs:
- get
- list
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- statefulsets
- replicasets
verbs:
- get
- list
- apiGroups:
- batch
resources:
- jobs
- cronjobs
verbs:
- get
- list
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- get
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: dev-readonly-role-binding
namespace: dev
subjects:
- kind: Group
name: dev-readonly-group
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role
name: dev-readonly-role
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment