Skip to content

Instantly share code, notes, and snippets.

@quangthe
Last active July 22, 2022 07:28
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/3d8cb738d8b482621505185988e5f4b1 to your computer and use it in GitHub Desktop.
Save quangthe/3d8cb738d8b482621505185988e5f4b1 to your computer and use it in GitHub Desktop.
AWS EKS aws-auth dev group
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: dev-role
namespace: dev
rules:
- apiGroups:
- ""
resources:
- nodes
- namespaces
verbs:
- get
- list
- apiGroups:
- ""
resources:
- pods
- pods/portforward
- pods/exec
- pods/log
- services
- replicationcontrollers
- persistentvolumeclaims
- persistentvolumes
verbs: ['*']
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- statefulsets
- replicasets
verbs: ['*']
- apiGroups:
- batch
resources:
- jobs
- cronjobs
verbs: ['*']
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs: ['*']
- apiGroups:
- networking.k8s.io
resources:
- ingresses
verbs: ['*']
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: dev-role-binding
namespace: dev
subjects:
- kind: Group
name: dev-group
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role
name: dev-role
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment