Created
September 15, 2018 21:36
-
-
Save allanlei/17363387182a9e4fd5d0a987f2574600 to your computer and use it in GitHub Desktop.
Kubernetes Node Labeling permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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