Skip to content

Instantly share code, notes, and snippets.

@lucj
Created October 4, 2019 14:50
Show Gist options
  • Save lucj/e76a7da5e9e39a1f2499302066d87dbe to your computer and use it in GitHub Desktop.
Save lucj/e76a7da5e9e39a1f2499302066d87dbe to your computer and use it in GitHub Desktop.
Fix to the issue preventing the attachement of volume to k3s nodes (https://github.com/rancher/k3s/issues/732#issuecomment-526036948)
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: system:nodes:volumeattachments
rules:
- apiGroups:
- storage.k8s.io
resources:
- volumeattachments
verbs:
- create
- watch
- get
- list
- patch
- update
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:nodes:volumeattachments
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:nodes:volumeattachments
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment