Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update attacher.yaml #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 2 additions & 23 deletions deploy/kubernetes/attacher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,6 @@ metadata:
name: csi-attacher-sa
namespace: kube-system
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: external-attacher-runner
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["events"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned #80 (comment)
prefer rules instead of full admin rights

verbs: ["get", "list", "watch", "update", "patch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand All @@ -35,7 +14,7 @@ subjects:
namespace: kube-system
roleRef:
kind: ClusterRole
name: external-attacher-runner
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
---
# needed for StatefulSet
Expand Down Expand Up @@ -75,7 +54,7 @@ spec:
operator: "Exists"
containers:
- name: csi-attacher
image: quay.io/k8scsi/csi-attacher:v2.2.0
image: quay.io/k8scsi/csi-attacher:canary
args:
- "--v=4"
- "--csi-address=$(ADDRESS)"
Expand Down