Rework of helm charts

Signed-off-by: wilmardo <info@wilmardenouden.nl>
This commit is contained in:
wilmardo 2019-07-29 12:36:24 +02:00 committed by mergify[bot]
parent 20d336fca3
commit ca5fbc180c
48 changed files with 254 additions and 261 deletions

View File

@ -1,10 +1,10 @@
--- ---
apiVersion: v1 apiVersion: v1
appVersion: "1.0.0" appVersion: "1.3.0"
description: "Container Storage Interface (CSI) driver, description: "Container Storage Interface (CSI) driver,
provisioner, and attacher for Ceph cephfs" provisioner, and attacher for Ceph cephfs"
name: ceph-csi-cephfs name: ceph-csi-cephfs
version: 0.8.0 version: 0.9.0
keywords: keywords:
- ceph - ceph
- cephfs - cephfs

View File

@ -1,9 +1,10 @@
--- ---
{{ if not .Values.attacher.enabled }} {{ if not .Values.provisioner.attacher.enabled }}
apiVersion: storage.k8s.io/v1beta1 apiVersion: storage.k8s.io/v1beta1
kind: CSIDriver kind: CSIDriver
metadata: metadata:
name: {{ .Values.driverName }} name: {{ .Values.driverName }}
namespace: {{ .Release.Namespace }}
spec: spec:
attachRequired: false attachRequired: false
podInfoOnMount: false podInfoOnMount: false

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ .Values.configMapName | quote }} name: {{ .Values.configMapName | quote }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -2,6 +2,7 @@ kind: DaemonSet
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:
name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }} name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}
@ -90,7 +91,7 @@ spec:
- name: plugin-dir - name: plugin-dir
mountPath: {{ .Values.pluginDir }} mountPath: {{ .Values.pluginDir }}
mountPropagation: "Bidirectional" mountPropagation: "Bidirectional"
- name: mointpoint-dir - name: mountpoint-dir
mountPath: /var/lib/kubelet/pods mountPath: /var/lib/kubelet/pods
mountPropagation: "Bidirectional" mountPropagation: "Bidirectional"
- mountPath: /dev - mountPath: /dev
@ -146,15 +147,15 @@ spec:
emptyDir: { emptyDir: {
medium: "Memory" medium: "Memory"
} }
{{- if .Values.nodeplugin.affinity -}} {{- if .Values.nodeplugin.affinity }}
affinity: affinity:
{{ toYaml .Values.nodeplugin.affinity . | indent 8 }} {{ toYaml .Values.nodeplugin.affinity . | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.nodeplugin.nodeSelector -}} {{- if .Values.nodeplugin.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml .Values.nodeplugin.nodeSelector | indent 8 }} {{ toYaml .Values.nodeplugin.nodeSelector | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.nodeplugin.tolerations -}} {{- if .Values.nodeplugin.tolerations }}
tolerations: tolerations:
{{ toYaml .Values.nodeplugin.tolerations | indent 8 }} {{ toYaml .Values.nodeplugin.tolerations | indent 8 -}}
{{- end -}} {{- end -}}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "ceph-csi-cephfs.serviceAccountName.nodeplugin" . }} name: {{ include "ceph-csi-cephfs.serviceAccountName.nodeplugin" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -3,6 +3,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }} name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -3,6 +3,7 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }} name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -32,9 +32,9 @@ rules:
- apiGroups: ["csi.storage.k8s.io"] - apiGroups: ["csi.storage.k8s.io"]
resources: ["csinodeinfos"] resources: ["csinodeinfos"]
verbs: ["get", "list", "watch"] verbs: ["get", "list", "watch"]
{{ if .Values.attacher.enabled }} {{ if .Values.provisioner.attacher.enabled }}
- apiGroups: ["storage.k8s.io"] - apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"] resources: ["volumeattachments"]
verbs: ["get", "list", "watch", "update"] verbs: ["get", "list", "watch", "update"]
{{ end }} {{ end }}
{{- end -}} {{- end -}}

View File

@ -2,6 +2,7 @@ kind: Service
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }} name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "ceph-csi-cephfs.serviceAccountName.provisioner" . }} name: {{ include "ceph-csi-cephfs.serviceAccountName.provisioner" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -2,6 +2,7 @@ kind: StatefulSet
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }} name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}
@ -10,7 +11,7 @@ metadata:
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
spec: spec:
serviceName: {{ include "ceph-csi-cephfs.provisioner.fullname" . }} serviceName: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
replicas: {{ .Values.provisioner.replicas }} replicas: {{ .Values.provisioner.replicaCount }}
selector: selector:
matchLabels: matchLabels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
@ -28,7 +29,8 @@ spec:
serviceAccountName: {{ include "ceph-csi-cephfs.serviceAccountName.provisioner" . }} serviceAccountName: {{ include "ceph-csi-cephfs.serviceAccountName.provisioner" . }}
containers: containers:
- name: csi-provisioner - name: csi-provisioner
image: "{{ .Values.provisioner.image.repository }}:{{ .Values.provisioner.image.tag }}" image: "{{ .Values.provisioner.provisioner.image.repository }}:{{ .Values.provisioner.provisioner.image.tag }}"
imagePullPolicy: {{ .Values.provisioner.provisioner.image.pullPolicy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
- "--v=5" - "--v=5"
@ -37,26 +39,27 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.provisioner.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
resources: resources:
{{ toYaml .Values.provisioner.resources | indent 12 }} {{ toYaml .Values.provisioner.resources | indent 12 }}
{{ if .Values.attacher.enabled }} {{- if .Values.provisioner.attacher.enabled }}
- name: csi-attacher - name: csi-attacher
image: "{{ .Values.attacher.image.repository }}:{{ .Values.attacher.image.tag }}" image: "{{ .Values.provisioner.attacher.image.repository }}:{{ .Values.provisioner.attacher.image.tag }}"
imagePullPolicy: {{ .Values.provisioner.attacher.image.pullPolicy }}
args: args:
- "--v=5" - "--v=5"
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
env: env:
- name: ADDRESS - name: ADDRESS
value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.attacher.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
{{ end }} resources:
{{ toYaml .Values.provisioner.attacher.resources | indent 12 }}
{{- end }}
- name: csi-cephfsplugin - name: csi-cephfsplugin
securityContext: securityContext:
privileged: true privileged: true
@ -64,6 +67,7 @@ spec:
add: ["SYS_ADMIN"] add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true allowPrivilegeEscalation: true
image: "{{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag }}" image: "{{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag }}"
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }}
args : args :
- "--nodeid=$(NODE_ID)" - "--nodeid=$(NODE_ID)"
- "--type=cephfs" - "--type=cephfs"
@ -81,7 +85,6 @@ spec:
fieldPath: spec.nodeName fieldPath: spec.nodeName
- name: CSI_ENDPOINT - name: CSI_ENDPOINT
value: "unix:/{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "unix:/{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
@ -107,15 +110,15 @@ spec:
emptyDir: { emptyDir: {
medium: "Memory" medium: "Memory"
} }
{{- if .Values.provisioner.affinity -}} {{- if .Values.provisioner.affinity }}
affinity: affinity:
{{ toYaml .Values.provisioner.affinity . | indent 8 }} {{ toYaml .Values.provisioner.affinity | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.provisioner.nodeSelector -}} {{- if .Values.provisioner.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml .Values.provisioner.nodeSelector | indent 8 }} {{ toYaml .Values.provisioner.nodeSelector | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.provisioner.tolerations -}} {{- if .Values.provisioner.tolerations }}
tolerations: tolerations:
{{ toYaml .Values.provisioner.tolerations | indent 8 }} {{ toYaml .Values.provisioner.tolerations | indent 8 -}}
{{- end -}} {{- end -}}

View File

@ -19,23 +19,6 @@ registrationDir: /var/lib/kubelet/plugins_registry
pluginDir: /var/lib/kubelet/plugins pluginDir: /var/lib/kubelet/plugins
driverName: cephfs.csi.ceph.com driverName: cephfs.csi.ceph.com
configMapName: ceph-csi-config configMapName: ceph-csi-config
attacher:
name: attacher
enabled: true
replicaCount: 1
image:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
nodeplugin: nodeplugin:
name: nodeplugin name: nodeplugin
@ -45,7 +28,6 @@ nodeplugin:
repository: quay.io/k8scsi/csi-node-driver-registrar repository: quay.io/k8scsi/csi-node-driver-registrar
tag: v1.1.0 tag: v1.1.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {} resources: {}
plugin: plugin:
@ -54,7 +36,6 @@ nodeplugin:
# for stable functionality replace canary with latest release version # for stable functionality replace canary with latest release version
tag: canary tag: canary
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {} resources: {}
nodeSelector: {} nodeSelector: {}
@ -65,14 +46,22 @@ nodeplugin:
provisioner: provisioner:
name: provisioner name: provisioner
replicaCount: 1 replicaCount: 1
provisioner:
image: image:
repository: quay.io/k8scsi/csi-provisioner repository: quay.io/k8scsi/csi-provisioner
tag: v1.3.0 tag: v1.3.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {}
attacher:
name: attacher
enabled: true
image:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {} resources: {}
nodeSelector: {} nodeSelector: {}

View File

@ -1,10 +1,10 @@
--- ---
apiVersion: v1 apiVersion: v1
appVersion: "1.0.0" appVersion: "1.3.0"
description: "Container Storage Interface (CSI) driver, description: "Container Storage Interface (CSI) driver,
provisioner, and attacher for Ceph cephfs" provisioner, and attacher for Ceph cephfs"
name: ceph-csi-cephfs name: ceph-csi-cephfs
version: 0.8.0 version: 0.9.0
keywords: keywords:
- ceph - ceph
- cephfs - cephfs

View File

@ -1,9 +1,10 @@
--- ---
{{ if not .Values.attacher.enabled }} {{ if not .Values.provisioner.attacher.enabled }}
apiVersion: storage.k8s.io/v1beta1 apiVersion: storage.k8s.io/v1beta1
kind: CSIDriver kind: CSIDriver
metadata: metadata:
name: {{ .Values.driverName }} name: {{ .Values.driverName }}
namespace: {{ .Release.Namespace }}
spec: spec:
attachRequired: false attachRequired: false
podInfoOnMount: false podInfoOnMount: false

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ .Values.configMapName | quote }} name: {{ .Values.configMapName | quote }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -2,6 +2,7 @@ kind: DaemonSet
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:
name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }} name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}
@ -32,6 +33,7 @@ spec:
containers: containers:
- name: driver-registrar - name: driver-registrar
image: "{{ .Values.nodeplugin.registrar.image.repository }}:{{ .Values.nodeplugin.registrar.image.tag }}" image: "{{ .Values.nodeplugin.registrar.image.repository }}:{{ .Values.nodeplugin.registrar.image.tag }}"
imagePullPolicy: {{ .Values.nodeplugin.registrar.image.pullPolicy }}
args: args:
- "--v=5" - "--v=5"
- "--csi-address=/csi/{{ .Values.socketFile }}" - "--csi-address=/csi/{{ .Values.socketFile }}"
@ -49,7 +51,6 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
imagePullPolicy: {{ .Values.nodeplugin.registrar.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: plugin-dir - name: plugin-dir
mountPath: /csi mountPath: /csi
@ -90,7 +91,7 @@ spec:
- name: plugin-dir - name: plugin-dir
mountPath: {{ .Values.pluginDir }} mountPath: {{ .Values.pluginDir }}
mountPropagation: "Bidirectional" mountPropagation: "Bidirectional"
- name: mointpoint-dir - name: mountpoint-dir
mountPath: /var/lib/kubelet/pods mountPath: /var/lib/kubelet/pods
mountPropagation: "Bidirectional" mountPropagation: "Bidirectional"
- mountPath: /dev - mountPath: /dev
@ -146,15 +147,15 @@ spec:
emptyDir: { emptyDir: {
medium: "Memory" medium: "Memory"
} }
{{- if .Values.nodeplugin.affinity -}} {{- if .Values.nodeplugin.affinity }}
affinity: affinity:
{{ toYaml .Values.nodeplugin.affinity . | indent 8 }} {{ toYaml .Values.nodeplugin.affinity . | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.nodeplugin.nodeSelector -}} {{- if .Values.nodeplugin.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml .Values.nodeplugin.nodeSelector | indent 8 }} {{ toYaml .Values.nodeplugin.nodeSelector | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.nodeplugin.tolerations -}} {{- if .Values.nodeplugin.tolerations }}
tolerations: tolerations:
{{ toYaml .Values.nodeplugin.tolerations | indent 8 }} {{ toYaml .Values.nodeplugin.tolerations | indent 8 -}}
{{- end -}} {{- end -}}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "ceph-csi-cephfs.serviceAccountName.nodeplugin" . }} name: {{ include "ceph-csi-cephfs.serviceAccountName.nodeplugin" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -2,6 +2,7 @@ kind: Deployment
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }} name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}
@ -9,7 +10,7 @@ metadata:
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
spec: spec:
replicas: {{ .Values.provisioner.replicas }} replicas: {{ .Values.provisioner.replicaCount }}
selector: selector:
matchLabels: matchLabels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
@ -27,7 +28,7 @@ spec:
serviceAccountName: {{ include "ceph-csi-cephfs.serviceAccountName.provisioner" . }} serviceAccountName: {{ include "ceph-csi-cephfs.serviceAccountName.provisioner" . }}
containers: containers:
- name: csi-provisioner - name: csi-provisioner
image: "{{ .Values.provisioner.image.repository }}:{{ .Values.provisioner.image.tag }}" image: "{{ .Values.provisioner.provisioner.image.repository }}:{{ .Values.provisioner.provisioner.image.tag }}"
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
- "--v=5" - "--v=5"
@ -38,15 +39,16 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.provisioner.image.pullPolicy }} imagePullPolicy: {{ .Values.provisioner.provisioner.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
resources: resources:
{{ toYaml .Values.provisioner.resources | indent 12 }} {{ toYaml .Values.provisioner.resources | indent 12 }}
{{ if .Values.attacher.enabled }} {{- if .Values.provisioner.attacher.enabled }}
- name: csi-attacher - name: csi-attacher
image: "{{ .Values.attacher.image.repository }}:{{ .Values.attacher.image.tag }}" image: "{{ .Values.provisioner.attacher.image.repository }}:{{ .Values.provisioner.attacher.image.tag }}"
imagePullPolicy: {{ .Values.provisioner.attacher.image.pullPolicy }}
args: args:
- "--v=5" - "--v=5"
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
@ -55,11 +57,12 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.attacher.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
{{ end }} resources:
{{ toYaml .Values.nodeplugin.plugin.resources | indent 12 }}
{{- end }}
- name: csi-cephfsplugin - name: csi-cephfsplugin
securityContext: securityContext:
privileged: true privileged: true
@ -110,15 +113,15 @@ spec:
emptyDir: { emptyDir: {
medium: "Memory" medium: "Memory"
} }
{{- if .Values.provisioner.affinity -}} {{- if .Values.provisioner.affinity }}
affinity: affinity:
{{ toYaml .Values.provisioner.affinity . | indent 8 }} {{ toYaml .Values.provisioner.affinity . | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.provisioner.nodeSelector -}} {{- if .Values.provisioner.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml .Values.provisioner.nodeSelector | indent 8 }} {{ toYaml .Values.provisioner.nodeSelector | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.provisioner.tolerations -}} {{- if .Values.provisioner.tolerations }}
tolerations: tolerations:
{{ toYaml .Values.provisioner.tolerations | indent 8 }} {{ toYaml .Values.provisioner.tolerations | indent 8 -}}
{{- end -}} {{- end -}}

View File

@ -3,6 +3,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }} name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -3,6 +3,7 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }} name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}
@ -17,5 +18,4 @@ roleRef:
kind: Role kind: Role
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }} name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
namespace: {{ .Release.Namespace }}
{{- end -}} {{- end -}}

View File

@ -32,9 +32,9 @@ rules:
- apiGroups: ["csi.storage.k8s.io"] - apiGroups: ["csi.storage.k8s.io"]
resources: ["csinodeinfos"] resources: ["csinodeinfos"]
verbs: ["get", "list", "watch"] verbs: ["get", "list", "watch"]
{{ if .Values.attacher.enabled }} {{ if .Values.provisioner.attacher.enabled }}
- apiGroups: ["storage.k8s.io"] - apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"] resources: ["volumeattachments"]
verbs: ["get", "list", "watch", "update"] verbs: ["get", "list", "watch", "update"]
{{ end }} {{ end }}
{{- end -}} {{- end -}}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "ceph-csi-cephfs.serviceAccountName.provisioner" . }} name: {{ include "ceph-csi-cephfs.serviceAccountName.provisioner" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-cephfs.name" . }} app: {{ include "ceph-csi-cephfs.name" . }}
chart: {{ include "ceph-csi-cephfs.chart" . }} chart: {{ include "ceph-csi-cephfs.chart" . }}

View File

@ -19,21 +19,6 @@ registrationDir: /var/lib/kubelet/plugins_registry
pluginDir: /var/lib/kubelet/plugins pluginDir: /var/lib/kubelet/plugins
driverName: cephfs.csi.ceph.com driverName: cephfs.csi.ceph.com
configMapName: ceph-csi-config configMapName: ceph-csi-config
attacher:
name: attacher
enabled: true
image:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
nodeplugin: nodeplugin:
name: nodeplugin name: nodeplugin
@ -43,7 +28,6 @@ nodeplugin:
repository: quay.io/k8scsi/csi-node-driver-registrar repository: quay.io/k8scsi/csi-node-driver-registrar
tag: v1.1.0 tag: v1.1.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {} resources: {}
plugin: plugin:
@ -52,7 +36,6 @@ nodeplugin:
# for stable functionality replace canary with latest release version # for stable functionality replace canary with latest release version
tag: canary tag: canary
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {} resources: {}
nodeSelector: {} nodeSelector: {}
@ -63,14 +46,22 @@ nodeplugin:
provisioner: provisioner:
name: provisioner name: provisioner
replicaCount: 3 replicaCount: 3
provisioner:
image: image:
repository: quay.io/k8scsi/csi-provisioner repository: quay.io/k8scsi/csi-provisioner
tag: v1.3.0 tag: v1.3.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {}
attacher:
name: attacher
enabled: true
image:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {} resources: {}
nodeSelector: {} nodeSelector: {}

View File

@ -1,10 +1,10 @@
--- ---
apiVersion: v1 apiVersion: v1
appVersion: "1.0.0" appVersion: "1.3.0"
description: "Container Storage Interface (CSI) driver, description: "Container Storage Interface (CSI) driver,
provisioner, snapshotter, and attacher for Ceph RBD" provisioner, snapshotter, and attacher for Ceph RBD"
name: ceph-csi-rbd name: ceph-csi-rbd
version: 0.8.0 version: 0.9.0
keywords: keywords:
- ceph - ceph
- rbd - rbd

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ .Values.configMapName | quote }} name: {{ .Values.configMapName | quote }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}

View File

@ -2,6 +2,7 @@ kind: DaemonSet
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:
name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }} name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}
@ -89,7 +90,7 @@ spec:
- name: plugin-dir - name: plugin-dir
mountPath: {{ .Values.pluginDir }} mountPath: {{ .Values.pluginDir }}
mountPropagation: "Bidirectional" mountPropagation: "Bidirectional"
- name: mointpoint-dir - name: mountpoint-dir
mountPath: /var/lib/kubelet/pods mountPath: /var/lib/kubelet/pods
mountPropagation: "Bidirectional" mountPropagation: "Bidirectional"
- mountPath: /dev - mountPath: /dev
@ -143,15 +144,15 @@ spec:
emptyDir: { emptyDir: {
medium: "Memory" medium: "Memory"
} }
{{- if .Values.nodeplugin.affinity -}} {{- if .Values.nodeplugin.affinity }}
affinity: affinity:
{{ toYaml .Values.nodeplugin.affinity . | indent 8 }} {{ toYaml .Values.nodeplugin.affinity . | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.nodeplugin.nodeSelector -}} {{- if .Values.nodeplugin.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml .Values.nodeplugin.nodeSelector | indent 8 }} {{ toYaml .Values.nodeplugin.nodeSelector | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.nodeplugin.tolerations -}} {{- if .Values.nodeplugin.tolerations }}
tolerations: tolerations:
{{ toYaml .Values.nodeplugin.tolerations | indent 8 }} {{ toYaml .Values.nodeplugin.tolerations | indent 8 -}}
{{- end -}} {{- end -}}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "ceph-csi-rbd.serviceAccountName.nodeplugin" . }} name: {{ include "ceph-csi-rbd.serviceAccountName.nodeplugin" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}

View File

@ -3,6 +3,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }} name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}

View File

@ -3,6 +3,7 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }} name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}
@ -17,5 +18,4 @@ roleRef:
kind: Role kind: Role
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }} name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
namespace: {{ .Release.Namespace }}
{{- end -}} {{- end -}}

View File

@ -35,11 +35,11 @@ rules:
- apiGroups: ["snapshot.storage.k8s.io"] - apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots"] resources: ["volumesnapshots"]
verbs: ["get", "list", "watch", "update"] verbs: ["get", "list", "watch", "update"]
{{ if .Values.attacher.enabled }} {{ if .Values.provisioner.attacher.enabled }}
- apiGroups: ["storage.k8s.io"] - apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"] resources: ["volumeattachments"]
verbs: ["get", "list", "watch", "update"] verbs: ["get", "list", "watch", "update"]
{{ end }} {{ end }}
- apiGroups: ["snapshot.storage.k8s.io"] - apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents"] resources: ["volumesnapshotcontents"]
verbs: ["create", "get", "list", "watch", "update", "delete"] verbs: ["create", "get", "list", "watch", "update", "delete"]

View File

@ -2,6 +2,7 @@ kind: Service
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }} name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "ceph-csi-rbd.serviceAccountName.provisioner" . }} name: {{ include "ceph-csi-rbd.serviceAccountName.provisioner" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}

View File

@ -2,6 +2,7 @@ kind: StatefulSet
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }} name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}
@ -10,7 +11,7 @@ metadata:
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
spec: spec:
serviceName: {{ include "ceph-csi-rbd.provisioner.fullname" . }} serviceName: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
replicas: {{ .Values.provisioner.replicas }} replicas: {{ .Values.provisioner.replicaCount }}
selector: selector:
matchLabels: matchLabels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
@ -28,7 +29,8 @@ spec:
serviceAccountName: {{ include "ceph-csi-rbd.serviceAccountName.provisioner" . }} serviceAccountName: {{ include "ceph-csi-rbd.serviceAccountName.provisioner" . }}
containers: containers:
- name: csi-provisioner - name: csi-provisioner
image: "{{ .Values.provisioner.image.repository }}:{{ .Values.provisioner.image.tag }}" image: "{{ .Values.provisioner.provisioner.image.repository }}:{{ .Values.provisioner.provisioner.image.tag }}"
imagePullPolicy: {{ .Values.provisioner.provisioner.image.pullPolicy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
- "--v=5" - "--v=5"
@ -37,15 +39,14 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.provisioner.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
resources: resources:
{{ toYaml .Values.provisioner.resources | indent 12 }} {{ toYaml .Values.provisioner.provisioner.resources | indent 12 }}
- name: csi-snapshotter - name: csi-snapshotter
image: {{ .Values.snapshotter.image.repository }}:{{ .Values.snapshotter.image.tag }} image: {{ .Values.provisioner.snapshotter.image.repository }}:{{ .Values.provisioner.snapshotter.image.tag }}
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }} imagePullPolicy: {{ .Values.provisioner.snapshotter.image.pullPolicy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
- "--v=5" - "--v=5"
@ -59,21 +60,23 @@ spec:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
resources: resources:
{{ toYaml .Values.snapshotter.resources | indent 12 }} {{ toYaml .Values.provisioner.snapshotter.resources | indent 12 }}
{{ if .Values.attacher.enabled }} {{- if .Values.provisioner.attacher.enabled }}
- name: csi-attacher - name: csi-attacher
image: "{{ .Values.attacher.image.repository }}:{{ .Values.attacher.image.tag }}" image: "{{ .Values.provisioner.attacher.image.repository }}:{{ .Values.provisioner.attacher.image.tag }}"
imagePullPolicy: {{ .Values.provisioner.attacher.image.pullPolicy }}
args: args:
- "--v=5" - "--v=5"
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
env: env:
- name: ADDRESS - name: ADDRESS
value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.attacher.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
{{ end }} resources:
{{ toYaml .Values.provisioner.attacher.resources | indent 12 }}
{{- end }}
- name: csi-rbdplugin - name: csi-rbdplugin
securityContext: securityContext:
privileged: true privileged: true
@ -81,6 +84,7 @@ spec:
add: ["SYS_ADMIN"] add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true allowPrivilegeEscalation: true
image: "{{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag }}" image: "{{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag }}"
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }}
args : args :
- "--nodeid=$(NODE_ID)" - "--nodeid=$(NODE_ID)"
- "--type=rbd" - "--type=rbd"
@ -98,7 +102,6 @@ spec:
fieldPath: spec.nodeName fieldPath: spec.nodeName
- name: CSI_ENDPOINT - name: CSI_ENDPOINT
value: "unix:/{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "unix:/{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
@ -124,15 +127,15 @@ spec:
emptyDir: { emptyDir: {
medium: "Memory" medium: "Memory"
} }
{{- if .Values.provisioner.affinity -}} {{- if .Values.provisioner.affinity }}
affinity: affinity:
{{ toYaml .Values.provisioner.affinity . | indent 8 }} {{ toYaml .Values.provisioner.affinity | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.provisioner.nodeSelector -}} {{- if .Values.provisioner.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml .Values.provisioner.nodeSelector | indent 8 }} {{ toYaml .Values.provisioner.nodeSelector | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.provisioner.tolerations -}} {{- if .Values.provisioner.tolerations }}
tolerations: tolerations:
{{ toYaml .Values.provisioner.tolerations | indent 8 }} {{ toYaml .Values.provisioner.tolerations | indent 8 -}}
{{- end -}} {{- end -}}

View File

@ -20,24 +20,6 @@ pluginDir: /var/lib/kubelet/plugins
driverName: rbd.csi.ceph.com driverName: rbd.csi.ceph.com
configMapName: ceph-csi-config configMapName: ceph-csi-config
attacher:
name: attacher
enabled: true
replicaCount: 1
image:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
nodeplugin: nodeplugin:
name: nodeplugin name: nodeplugin
@ -46,7 +28,6 @@ nodeplugin:
repository: quay.io/k8scsi/csi-node-driver-registrar repository: quay.io/k8scsi/csi-node-driver-registrar
tag: v1.1.0 tag: v1.1.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {} resources: {}
plugin: plugin:
@ -55,7 +36,6 @@ nodeplugin:
# for stable functionality replace canary with latest release version # for stable functionality replace canary with latest release version
tag: canary tag: canary
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {} resources: {}
nodeSelector: {} nodeSelector: {}
@ -66,14 +46,28 @@ nodeplugin:
provisioner: provisioner:
name: provisioner name: provisioner
replicaCount: 1 replicaCount: 1
provisioner:
image: image:
repository: quay.io/k8scsi/csi-provisioner repository: quay.io/k8scsi/csi-provisioner
tag: v1.3.0 tag: v1.3.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {}
snapshotter:
image:
repository: quay.io/k8scsi/csi-snapshotter
tag: v1.1.0
pullPolicy: IfNotPresent
resources: {}
attacher:
enabled: true
image:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {} resources: {}
nodeSelector: {} nodeSelector: {}
@ -81,11 +75,3 @@ provisioner:
tolerations: [] tolerations: []
affinity: {} affinity: {}
snapshotter:
image:
repository: quay.io/k8scsi/csi-snapshotter
tag: v1.1.0
pullPolicy: IfNotPresent
resources: {}

View File

@ -1,9 +1,10 @@
--- ---
{{ if not .Values.attacher.enabled }} {{ if not .Values.provisioner.attacher.enabled }}
apiVersion: storage.k8s.io/v1beta1 apiVersion: storage.k8s.io/v1beta1
kind: CSIDriver kind: CSIDriver
metadata: metadata:
name: {{ .Values.driverName }} name: {{ .Values.driverName }}
namespace: {{ .Release.Namespace }}
spec: spec:
attachRequired: false attachRequired: false
podInfoOnMount: false podInfoOnMount: false

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ .Values.configMapName | quote }} name: {{ .Values.configMapName | quote }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}

View File

@ -2,6 +2,7 @@ kind: DaemonSet
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:
name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }} name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}
@ -89,7 +90,7 @@ spec:
- name: plugin-dir - name: plugin-dir
mountPath: {{ .Values.pluginDir }} mountPath: {{ .Values.pluginDir }}
mountPropagation: "Bidirectional" mountPropagation: "Bidirectional"
- name: mointpoint-dir - name: mountpoint-dir
mountPath: /var/lib/kubelet/pods mountPath: /var/lib/kubelet/pods
mountPropagation: "Bidirectional" mountPropagation: "Bidirectional"
- mountPath: /dev - mountPath: /dev
@ -143,15 +144,15 @@ spec:
emptyDir: { emptyDir: {
medium: "Memory" medium: "Memory"
} }
{{- if .Values.nodeplugin.affinity -}} {{- if .Values.nodeplugin.affinity }}
affinity: affinity:
{{ toYaml .Values.nodeplugin.affinity . | indent 8 }} {{ toYaml .Values.nodeplugin.affinity . | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.nodeplugin.nodeSelector -}} {{- if .Values.nodeplugin.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml .Values.nodeplugin.nodeSelector | indent 8 }} {{ toYaml .Values.nodeplugin.nodeSelector | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.nodeplugin.tolerations -}} {{- if .Values.nodeplugin.tolerations }}
tolerations: tolerations:
{{ toYaml .Values.nodeplugin.tolerations | indent 8 }} {{ toYaml .Values.nodeplugin.tolerations | indent 8 -}}
{{- end -}} {{- end -}}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "ceph-csi-rbd.serviceAccountName.nodeplugin" . }} name: {{ include "ceph-csi-rbd.serviceAccountName.nodeplugin" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}

View File

@ -2,6 +2,7 @@ kind: Deployment
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }} name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}
@ -9,7 +10,7 @@ metadata:
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
spec: spec:
replicas: {{ .Values.provisioner.replicas }} replicas: {{ .Values.provisioner.replicaCount }}
selector: selector:
matchLabels: matchLabels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
@ -27,7 +28,8 @@ spec:
serviceAccountName: {{ include "ceph-csi-rbd.serviceAccountName.provisioner" . }} serviceAccountName: {{ include "ceph-csi-rbd.serviceAccountName.provisioner" . }}
containers: containers:
- name: csi-provisioner - name: csi-provisioner
image: "{{ .Values.provisioner.image.repository }}:{{ .Values.provisioner.image.tag }}" image: "{{ .Values.provisioner.provisioner.image.repository }}:{{ .Values.provisioner.provisioner.image.tag }}"
imagePullPolicy: {{ .Values.provisioner.provisioner.image.pullPolicy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
- "--v=5" - "--v=5"
@ -38,15 +40,14 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.provisioner.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
resources: resources:
{{ toYaml .Values.provisioner.resources | indent 12 }} {{ toYaml .Values.provisioner.provisioner.resources | indent 12 }}
- name: csi-snapshotter - name: csi-snapshotter
image: {{ .Values.snapshotter.image.repository }}:{{ .Values.snapshotter.image.tag }} image: {{ .Values.provisioner.snapshotter.image.repository }}:{{ .Values.provisioner.snapshotter.image.tag }}
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }} imagePullPolicy: {{ .Values.provisioner.snapshotter.image.pullPolicy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
- "--v=5" - "--v=5"
@ -61,10 +62,11 @@ spec:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
resources: resources:
{{ toYaml .Values.snapshotter.resources | indent 12 }} {{ toYaml .Values.provisioner.snapshotter.resources | indent 12 }}
{{ if .Values.attacher.enabled }} {{- if .Values.provisioner.attacher.enabled }}
- name: csi-attacher - name: csi-attacher
image: "{{ .Values.attacher.image.repository }}:{{ .Values.attacher.image.tag }}" image: "{{ .Values.provisioner.attacher.image.repository }}:{{ .Values.provisioner.attacher.image.tag }}"
imagePullPolicy: {{ .Values.provisioner.attacher.image.pullPolicy }}
args: args:
- "--v=5" - "--v=5"
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
@ -73,11 +75,12 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.attacher.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
{{ end }} resources:
{{ toYaml .Values.provisioner.attacher.resources | indent 12 }}
{{- end }}
- name: csi-rbdplugin - name: csi-rbdplugin
securityContext: securityContext:
privileged: true privileged: true
@ -85,6 +88,7 @@ spec:
add: ["SYS_ADMIN"] add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true allowPrivilegeEscalation: true
image: "{{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag }}" image: "{{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag }}"
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }}
args : args :
- "--nodeid=$(NODE_ID)" - "--nodeid=$(NODE_ID)"
- "--type=rbd" - "--type=rbd"
@ -102,7 +106,6 @@ spec:
fieldPath: spec.nodeName fieldPath: spec.nodeName
- name: CSI_ENDPOINT - name: CSI_ENDPOINT
value: "unix:/{{ .Values.socketDir }}/{{ .Values.socketFile }}" value: "unix:/{{ .Values.socketDir }}/{{ .Values.socketFile }}"
imagePullPolicy: {{ .Values.nodeplugin.plugin.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: {{ .Values.socketDir }} mountPath: {{ .Values.socketDir }}
@ -128,15 +131,15 @@ spec:
emptyDir: { emptyDir: {
medium: "Memory" medium: "Memory"
} }
{{- if .Values.provisioner.affinity -}} {{- if .Values.provisioner.affinity }}
affinity: affinity:
{{ toYaml .Values.provisioner.affinity . | indent 8 }} {{ toYaml .Values.provisioner.affinity . | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.provisioner.nodeSelector -}} {{- if .Values.provisioner.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml .Values.provisioner.nodeSelector | indent 8 }} {{ toYaml .Values.provisioner.nodeSelector | indent 8 -}}
{{- end -}} {{- end -}}
{{- if .Values.provisioner.tolerations -}} {{- if .Values.provisioner.tolerations }}
tolerations: tolerations:
{{ toYaml .Values.provisioner.tolerations | indent 8 }} {{ toYaml .Values.provisioner.tolerations | indent 8 -}}
{{- end -}} {{- end -}}

View File

@ -3,6 +3,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }} name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}

View File

@ -3,6 +3,7 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }} name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}
@ -17,5 +18,4 @@ roleRef:
kind: Role kind: Role
name: {{ include "ceph-csi-rbd.provisioner.fullname" . }} name: {{ include "ceph-csi-rbd.provisioner.fullname" . }}
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
namespace: {{ .Release.Namespace }}
{{- end -}} {{- end -}}

View File

@ -35,11 +35,11 @@ rules:
- apiGroups: ["snapshot.storage.k8s.io"] - apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots"] resources: ["volumesnapshots"]
verbs: ["get", "list", "watch", "update"] verbs: ["get", "list", "watch", "update"]
{{ if .Values.attacher.enabled }} {{ if .Values.provisioner.attacher.enabled }}
- apiGroups: ["storage.k8s.io"] - apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"] resources: ["volumeattachments"]
verbs: ["get", "list", "watch", "update"] verbs: ["get", "list", "watch", "update"]
{{ end }} {{ end }}
- apiGroups: ["snapshot.storage.k8s.io"] - apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents"] resources: ["volumesnapshotcontents"]
verbs: ["create", "get", "list", "watch", "update", "delete"] verbs: ["create", "get", "list", "watch", "update", "delete"]

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "ceph-csi-rbd.serviceAccountName.provisioner" . }} name: {{ include "ceph-csi-rbd.serviceAccountName.provisioner" . }}
namespace: {{ .Release.Namespace }}
labels: labels:
app: {{ include "ceph-csi-rbd.name" . }} app: {{ include "ceph-csi-rbd.name" . }}
chart: {{ include "ceph-csi-rbd.chart" . }} chart: {{ include "ceph-csi-rbd.chart" . }}

View File

@ -20,22 +20,6 @@ pluginDir: /var/lib/kubelet/plugins
driverName: rbd.csi.ceph.com driverName: rbd.csi.ceph.com
configMapName: ceph-csi-config configMapName: ceph-csi-config
attacher:
name: attacher
enabled: true
image:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
nodeplugin: nodeplugin:
name: nodeplugin name: nodeplugin
@ -44,7 +28,6 @@ nodeplugin:
repository: quay.io/k8scsi/csi-node-driver-registrar repository: quay.io/k8scsi/csi-node-driver-registrar
tag: v1.1.0 tag: v1.1.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {} resources: {}
plugin: plugin:
@ -53,7 +36,6 @@ nodeplugin:
# for stable functionality replace canary with latest release version # for stable functionality replace canary with latest release version
tag: canary tag: canary
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {} resources: {}
nodeSelector: {} nodeSelector: {}
@ -64,14 +46,29 @@ nodeplugin:
provisioner: provisioner:
name: provisioner name: provisioner
replicaCount: 3 replicaCount: 3
provisioner:
image: image:
repository: quay.io/k8scsi/csi-provisioner repository: quay.io/k8scsi/csi-provisioner
tag: v1.3.0 tag: v1.3.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
resources: {}
attacher:
name: attacher
enabled: true
image:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {}
snapshotter:
image:
repository: quay.io/k8scsi/csi-snapshotter
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {} resources: {}
nodeSelector: {} nodeSelector: {}
@ -79,11 +76,3 @@ provisioner:
tolerations: [] tolerations: []
affinity: {} affinity: {}
snapshotter:
image:
repository: quay.io/k8scsi/csi-snapshotter
tag: v1.2.0
pullPolicy: IfNotPresent
resources: {}