Skip to content

Instantly share code, notes, and snippets.

@allanlei
Created September 15, 2018 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save allanlei/17363387182a9e4fd5d0a987f2574600 to your computer and use it in GitHub Desktop.
Save allanlei/17363387182a9e4fd5d0a987f2574600 to your computer and use it in GitHub Desktop.
Kubernetes Node Labeling permissions
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: node-labeler
rules:
- apiGroups: [""]
resources: ["node"]
verbs: ["list", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: node-labeler
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: node-labeler
subjects:
- namespace: kube-system
kind: ServiceAccount
name: default
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment