-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helm: add option to enable read affinity for CephFS
This commit adds --enable-read-affinity flag to enable read affinity for CephFS. Signed-off-by: Praveen M <[email protected]>
- Loading branch information
1 parent
12d86cb
commit 9f61907
Showing
7 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
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
38 changes: 38 additions & 0 deletions
38
charts/ceph-csi-cephfs/templates/nodeplugin-clusterrole.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{- if .Values.rbac.create -}} | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }} | ||
labels: | ||
app: {{ include "ceph-csi-cephfs.name" . }} | ||
chart: {{ include "ceph-csi-cephfs.chart" . }} | ||
component: {{ .Values.nodeplugin.name }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }} | ||
rules: | ||
{{- if .Values.readAffinity.enabled }} | ||
- apiGroups: [""] | ||
resources: ["nodes"] | ||
verbs: ["get"] | ||
{{- end }} | ||
# allow to read Vault Token and connection options from the Tenants namespace | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get"] | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
verbs: ["get"] | ||
- apiGroups: [""] | ||
resources: ["serviceaccounts"] | ||
verbs: ["get"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes"] | ||
verbs: ["get"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["volumeattachments"] | ||
verbs: ["list", "get"] | ||
- apiGroups: [""] | ||
resources: ["serviceaccounts/token"] | ||
verbs: ["create"] | ||
{{- end -}} |
21 changes: 21 additions & 0 deletions
21
charts/ceph-csi-cephfs/templates/nodeplugin-clusterrolebinding.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if .Values.rbac.create -}} | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }} | ||
labels: | ||
app: {{ include "ceph-csi-cephfs.name" . }} | ||
chart: {{ include "ceph-csi-cephfs.chart" . }} | ||
component: {{ .Values.nodeplugin.name }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "ceph-csi-cephfs.serviceAccountName.nodeplugin" . }} | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }} | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- end -}} |
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
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
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
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