Skip to content

Instantly share code, notes, and snippets.

@willthames
Created October 30, 2018 23:42
Show Gist options
  • Save willthames/b28b58b8af947226fe37ec04ffa9023f to your computer and use it in GitHub Desktop.
Save willthames/b28b58b8af947226fe37ec04ffa9023f to your computer and use it in GitHub Desktop.
kubedrain ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kubedrain
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: view
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: kubelet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment