Skip to content

Instantly share code, notes, and snippets.

@aianus
Forked from allanlei/rbac.yaml
Created November 6, 2018 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aianus/83a58e1052a9eb2b668c3603c5c953ee to your computer and use it in GitHub Desktop.
Save aianus/83a58e1052a9eb2b668c3603c5c953ee 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: ["nodes"]
verbs: ["get", "list", "update", "patch"]
---
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