Created
October 18, 2018 21:29
-
-
Save someword/e461beef564a2ccf8e197ccbff589f06 to your computer and use it in GitHub Desktop.
This file contains 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
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: node-drain | |
rules: | |
- apiGroups: | |
- extensions | |
resources: | |
- daemonsets | |
verbs: | |
- get | |
- list | |
- apiGroups: | |
- apps | |
resources: | |
- daemonsets | |
verbs: | |
- get | |
- list | |
- apiGroups: | |
- "" | |
resources: | |
- nodes | |
verbs: | |
- list | |
- watch | |
- apiGroups: | |
- "" | |
resources: | |
- nodes/status | |
verbs: | |
- patch | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: node-drain | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: node-drain | |
subjects: | |
- apiGroup: rbac.authorization.k8s.io | |
kind: Group | |
name: node-drain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update config map like
mapRoles: |
- rolearn: {{.NodeRoleArn}}
username: system:node:{{
{{EC2PrivateDNSName}}
}}groups:
- system:bootstrappers
- system:nodes
- node-drain