Skip to content

Instantly share code, notes, and snippets.

@kotarusv
Created October 11, 2018 18:24
Show Gist options
  • Select an option

  • Save kotarusv/393e835b00141664714d7b8a32933fa6 to your computer and use it in GitHub Desktop.

Select an option

Save kotarusv/393e835b00141664714d7b8a32933fa6 to your computer and use it in GitHub Desktop.
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: nodes
labels:
lab: authz
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs:
- create
- get
- list
- watch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: nodes
labels:
lab: authz
subjects:
- kind: Group
name: training
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: nodes
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment