Skip to content

Instantly share code, notes, and snippets.

@arslanbekov
Created May 4, 2018 14:33
Show Gist options
  • Save arslanbekov/502dcac8ed6ed2a86bb3abd9d1b14a96 to your computer and use it in GitHub Desktop.
Save arslanbekov/502dcac8ed6ed2a86bb3abd9d1b14a96 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