mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
deploy: remove external-attacher sidecar from cephfs deployment
CephFS CSI driver dont need attacher sidecar for its operations. This commit remove the same. The RBAC has also got adjusted. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
e8c0e75e04
commit
c0fa88435f
@ -40,14 +40,6 @@ rules:
|
|||||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
resources: ["volumesnapshotcontents/status"]
|
resources: ["volumesnapshotcontents/status"]
|
||||||
verbs: ["update", "patch"]
|
verbs: ["update", "patch"]
|
||||||
{{- if .Values.provisioner.attacher.enabled }}
|
|
||||||
- apiGroups: ["storage.k8s.io"]
|
|
||||||
resources: ["volumeattachments"]
|
|
||||||
verbs: ["get", "list", "watch", "update", "patch"]
|
|
||||||
- apiGroups: ["storage.k8s.io"]
|
|
||||||
resources: ["volumeattachments/status"]
|
|
||||||
verbs: ["patch"]
|
|
||||||
{{- end -}}
|
|
||||||
{{- if .Values.provisioner.resizer.enabled }}
|
{{- if .Values.provisioner.resizer.enabled }}
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["persistentvolumeclaims/status"]
|
resources: ["persistentvolumeclaims/status"]
|
||||||
|
@ -86,24 +86,6 @@ spec:
|
|||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.provisioner.snapshotter.resources | indent 12 }}
|
{{ toYaml .Values.provisioner.snapshotter.resources | indent 12 }}
|
||||||
{{- if .Values.provisioner.attacher.enabled }}
|
|
||||||
- name: csi-attacher
|
|
||||||
image: "{{ .Values.provisioner.attacher.image.repository }}:{{ .Values.provisioner.attacher.image.tag }}"
|
|
||||||
imagePullPolicy: {{ .Values.provisioner.attacher.image.pullPolicy }}
|
|
||||||
args:
|
|
||||||
- "--v={{ .Values.logLevel }}"
|
|
||||||
- "--csi-address=$(ADDRESS)"
|
|
||||||
- "--leader-election=true"
|
|
||||||
- "--retry-interval-start=500ms"
|
|
||||||
env:
|
|
||||||
- name: ADDRESS
|
|
||||||
value: "unix:///csi/{{ .Values.provisionerSocketFile }}"
|
|
||||||
volumeMounts:
|
|
||||||
- name: socket-dir
|
|
||||||
mountPath: /csi
|
|
||||||
resources:
|
|
||||||
{{ toYaml .Values.nodeplugin.plugin.resources | indent 12 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.provisioner.resizer.enabled }}
|
{{- if .Values.provisioner.resizer.enabled }}
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: "{{ .Values.provisioner.resizer.image.repository }}:{{ .Values.provisioner.resizer.image.tag }}"
|
image: "{{ .Values.provisioner.resizer.image.repository }}:{{ .Values.provisioner.resizer.image.tag }}"
|
||||||
|
@ -166,15 +166,6 @@ provisioner:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
|
|
||||||
attacher:
|
|
||||||
name: attacher
|
|
||||||
enabled: true
|
|
||||||
image:
|
|
||||||
repository: registry.k8s.io/sig-storage/csi-attacher
|
|
||||||
tag: v3.4.0
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
resources: {}
|
|
||||||
|
|
||||||
resizer:
|
resizer:
|
||||||
name: resizer
|
name: resizer
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -90,20 +90,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-cephfsplugin-attacher
|
|
||||||
image: registry.k8s.io/sig-storage/csi-attacher:v3.4.0
|
|
||||||
args:
|
|
||||||
- "--v=5"
|
|
||||||
- "--csi-address=$(ADDRESS)"
|
|
||||||
- "--leader-election=true"
|
|
||||||
- "--retry-interval-start=500ms"
|
|
||||||
env:
|
|
||||||
- name: ADDRESS
|
|
||||||
value: /csi/csi-provisioner.sock
|
|
||||||
imagePullPolicy: "IfNotPresent"
|
|
||||||
volumeMounts:
|
|
||||||
- name: socket-dir
|
|
||||||
mountPath: /csi
|
|
||||||
- name: csi-cephfsplugin
|
- name: csi-cephfsplugin
|
||||||
# for stable functionality replace canary with latest release version
|
# for stable functionality replace canary with latest release version
|
||||||
image: quay.io/cephcsi/cephcsi:canary
|
image: quay.io/cephcsi/cephcsi:canary
|
||||||
|
@ -37,12 +37,6 @@ rules:
|
|||||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
resources: ["volumesnapshotclasses"]
|
resources: ["volumesnapshotclasses"]
|
||||||
verbs: ["get", "list", "watch"]
|
verbs: ["get", "list", "watch"]
|
||||||
- apiGroups: ["storage.k8s.io"]
|
|
||||||
resources: ["volumeattachments"]
|
|
||||||
verbs: ["get", "list", "watch", "update", "patch"]
|
|
||||||
- apiGroups: ["storage.k8s.io"]
|
|
||||||
resources: ["volumeattachments/status"]
|
|
||||||
verbs: ["patch"]
|
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["persistentvolumeclaims/status"]
|
resources: ["persistentvolumeclaims/status"]
|
||||||
verbs: ["update", "patch"]
|
verbs: ["update", "patch"]
|
||||||
|
Loading…
Reference in New Issue
Block a user