Skip to content

Commit

Permalink
Add developer and devops roles (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
nevalla authored and jakolehm committed Oct 18, 2018
1 parent 20d7fce commit 48bd35e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
@@ -0,0 +1,32 @@
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: developer
rules:
- apiGroups: ["", "extensions", "apps"]
resources: ["deployments", "replicasets", "pods", "daemonsets", "statefulsets", "configmaps", "secrets", "persistentvolumeclaims", "resourcequotas"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["delete"]
- apiGroups: ["", "extensions", "networking.k8s.io"]
resources: ["services", "ingresses", "networkpolicies"]
verbs: ["get", "list", "watch"]
- apiGroups: ["batch"]
resources: ["jobs", "cronjobs"]
verbs: ["get", "list", "watch"]
- apiGroups: ["metrics.k8s.io"]
resources: ["*"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["pods/log"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["pods/exec"]
verbs: ["create"]
- apiGroups: ["", "rbac.authorization.k8s.io"]
resources: ["serviceaccounts", "rolebindings", "roles"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get"]
@@ -0,0 +1,8 @@
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: devops
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]

0 comments on commit 48bd35e

Please sign in to comment.