Skip to content

Instantly share code, notes, and snippets.

@lazypower
Created June 9, 2017 19:10
Show Gist options
  • Save lazypower/e4e3afe9b0b470736ecf13d8009ab5ef to your computer and use it in GitHub Desktop.
Save lazypower/e4e3afe9b0b470736ecf13d8009ab5ef to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: development
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
namespace: development
name: developers
rules:
- apiGroups: [""]
resources: ["pods", "replicaset", "replicationcontroller", "deployment", "configmap", "secrets"]
verbs: ["update", "get", "list", "watch", "create", "patch", "delete"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: developers
namespace: development
subjects:
- kind: Group
name: developers
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role
name: developers
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment