mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-12 17:30:19 +00:00
Rework of helm charts
Signed-off-by: wilmardo <info@wilmardenouden.nl>
This commit is contained in:
parent
20d336fca3
commit
ca5fbc180c
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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" . }}
|
||||||
|
@ -16,5 +16,5 @@ subjects:
|
|||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }}
|
name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }}
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -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" . }}
|
||||||
@ -41,7 +42,7 @@ spec:
|
|||||||
exec:
|
exec:
|
||||||
command: [
|
command: [
|
||||||
"/bin/sh", "-c",
|
"/bin/sh", "-c",
|
||||||
'rm -rf /registration/{{ .Values.driverName }}
|
'rm -rf /registration/{{ .Values.driverName }}
|
||||||
/registration/{{ .Values.driverName }}-reg.sock'
|
/registration/{{ .Values.driverName }}-reg.sock'
|
||||||
]
|
]
|
||||||
env:
|
env:
|
||||||
@ -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 -}}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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,15 +46,23 @@ nodeplugin:
|
|||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: provisioner
|
name: provisioner
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
image:
|
provisioner:
|
||||||
repository: quay.io/k8scsi/csi-provisioner
|
image:
|
||||||
tag: v1.3.0
|
repository: quay.io/k8scsi/csi-provisioner
|
||||||
pullPolicy: IfNotPresent
|
tag: v1.3.0
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
resources: {}
|
||||||
|
|
||||||
resources: {}
|
attacher:
|
||||||
|
name: attacher
|
||||||
|
enabled: true
|
||||||
|
image:
|
||||||
|
repository: quay.io/k8scsi/csi-attacher
|
||||||
|
tag: v1.2.0
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
resources: {}
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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" . }}
|
||||||
|
@ -16,5 +16,5 @@ subjects:
|
|||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }}
|
name: {{ include "ceph-csi-cephfs.nodeplugin.fullname" . }}
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -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 }}"
|
||||||
@ -41,15 +43,14 @@ spec:
|
|||||||
exec:
|
exec:
|
||||||
command: [
|
command: [
|
||||||
"/bin/sh", "-c",
|
"/bin/sh", "-c",
|
||||||
'rm -rf /registration/{{ .Values.driverName }}
|
'rm -rf /registration/{{ .Values.driverName }}
|
||||||
/registration/{{ .Values.driverName }}-reg.sock'
|
/registration/{{ .Values.driverName }}-reg.sock'
|
||||||
]
|
]
|
||||||
env:
|
env:
|
||||||
- name: KUBE_NODE_NAME
|
- name: KUBE_NODE_NAME
|
||||||
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 -}}
|
@ -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" . }}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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,15 +46,23 @@ nodeplugin:
|
|||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: provisioner
|
name: provisioner
|
||||||
|
|
||||||
replicaCount: 3
|
replicaCount: 3
|
||||||
|
|
||||||
image:
|
provisioner:
|
||||||
repository: quay.io/k8scsi/csi-provisioner
|
image:
|
||||||
tag: v1.3.0
|
repository: quay.io/k8scsi/csi-provisioner
|
||||||
pullPolicy: IfNotPresent
|
tag: v1.3.0
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
resources: {}
|
||||||
|
|
||||||
resources: {}
|
attacher:
|
||||||
|
name: attacher
|
||||||
|
enabled: true
|
||||||
|
image:
|
||||||
|
repository: quay.io/k8scsi/csi-attacher
|
||||||
|
tag: v1.2.0
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
resources: {}
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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" . }}
|
||||||
|
@ -16,5 +16,5 @@ subjects:
|
|||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }}
|
name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }}
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -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" . }}
|
||||||
@ -43,7 +44,7 @@ spec:
|
|||||||
exec:
|
exec:
|
||||||
command: [
|
command: [
|
||||||
"/bin/sh", "-c",
|
"/bin/sh", "-c",
|
||||||
'rm -rf /registration/{{ .Values.driverName }}
|
'rm -rf /registration/{{ .Values.driverName }}
|
||||||
/registration/{{ .Values.driverName }}-reg.sock'
|
/registration/{{ .Values.driverName }}-reg.sock'
|
||||||
]
|
]
|
||||||
env:
|
env:
|
||||||
@ -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 -}}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
{{- if .Values.rbac.create -}}
|
{{- if .Values.rbac.create -}}
|
||||||
kind: Role
|
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" . }}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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"]
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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,26 +46,32 @@ nodeplugin:
|
|||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: provisioner
|
name: provisioner
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
image:
|
provisioner:
|
||||||
repository: quay.io/k8scsi/csi-provisioner
|
image:
|
||||||
tag: v1.3.0
|
repository: quay.io/k8scsi/csi-provisioner
|
||||||
pullPolicy: IfNotPresent
|
tag: v1.3.0
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
resources: {}
|
||||||
|
|
||||||
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: {}
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
snapshotter:
|
|
||||||
image:
|
|
||||||
repository: quay.io/k8scsi/csi-snapshotter
|
|
||||||
tag: v1.1.0
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
|
|
||||||
resources: {}
|
|
||||||
|
@ -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
|
||||||
|
@ -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" . }}
|
||||||
|
@ -16,5 +16,5 @@ subjects:
|
|||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }}
|
name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }}
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -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" . }}
|
||||||
@ -43,8 +44,8 @@ spec:
|
|||||||
exec:
|
exec:
|
||||||
command: [
|
command: [
|
||||||
"/bin/sh", "-c",
|
"/bin/sh", "-c",
|
||||||
'rm -rf /registration/{{ .Values.driverName }}
|
'rm -rf /registration/{{ .Values.driverName }}
|
||||||
/registration/{{ .Values.driverName }}-reg.sock'
|
/registration/{{ .Values.driverName }}-reg.sock'
|
||||||
]
|
]
|
||||||
env:
|
env:
|
||||||
- name: KUBE_NODE_NAME
|
- name: KUBE_NODE_NAME
|
||||||
@ -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 -}}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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"]
|
||||||
|
@ -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" . }}
|
||||||
|
@ -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,26 +46,33 @@ nodeplugin:
|
|||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: provisioner
|
name: provisioner
|
||||||
|
|
||||||
replicaCount: 3
|
replicaCount: 3
|
||||||
|
|
||||||
image:
|
provisioner:
|
||||||
repository: quay.io/k8scsi/csi-provisioner
|
image:
|
||||||
tag: v1.3.0
|
repository: quay.io/k8scsi/csi-provisioner
|
||||||
pullPolicy: IfNotPresent
|
tag: v1.3.0
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
resources: {}
|
||||||
|
|
||||||
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: {}
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
snapshotter:
|
|
||||||
image:
|
|
||||||
repository: quay.io/k8scsi/csi-snapshotter
|
|
||||||
tag: v1.2.0
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
|
|
||||||
resources: {}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user