Skip to content

Instantly share code, notes, and snippets.

@chemist
Forked from arslanbekov/role.yaml
Created May 6, 2018 18:17
Show Gist options
  • Save chemist/68b1f09c09d28446f6725167e1484e02 to your computer and use it in GitHub Desktop.
Save chemist/68b1f09c09d28446f6725167e1484e02 to your computer and use it in GitHub Desktop.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: your-namespace
namespace: your-namespace
rules:
- apiGroups:
- ""
resources:
- pods
- pods/portforward
- pods/exec
- pods/log
- configmaps
- secrets
- services
- componentstatuses
- namespaces
- persistentvolumeclaims
- events
- replicationcontrollers
- limitranges
verbs:
- '*'
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- '*'
- apiGroups:
- batch
resources:
- jobs
- cronjobs
verbs:
- '*'
- apiGroups:
- extensions
resources:
- deployments
- replicasets
- daemonsets
- ingresses
verbs:
- '*'
- apiGroups:
- ""
resources:
- resourcequotas
verbs:
- "get"
- "list"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment