Merge pull request #54 from NiklasRosenstein/add-helm-kubeletPath-option

add a `kubeletPath` option to `values.yaml`
This commit is contained in:
Vitaliy Filippov 2023-06-15 19:11:30 +03:00 committed by GitHub
commit c7e066396b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 12 deletions

View file

@ -89,13 +89,13 @@ spec:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/kubelet/plugins/ru.yandex.s3.csi/csi.sock value: {{ .Values.kubeletPath }}/plugins/ru.yandex.s3.csi/csi.sock
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /var/lib/kubelet/plugins/ru.yandex.s3.csi mountPath: {{ .Values.kubeletPath }}/plugins/ru.yandex.s3.csi
volumes: volumes:
- name: socket-dir - name: socket-dir
hostPath: hostPath:
path: /var/lib/kubelet/plugins/ru.yandex.s3.csi path: {{ .Values.kubeletPath }}/plugins/ru.yandex.s3.csi
type: DirectoryOrCreate type: DirectoryOrCreate

View file

@ -62,7 +62,7 @@ spec:
- name: ADDRESS - name: ADDRESS
value: /csi/csi.sock value: /csi/csi.sock
- name: DRIVER_REG_SOCK_PATH - name: DRIVER_REG_SOCK_PATH
value: /var/lib/kubelet/plugins/ru.yandex.s3.csi/csi.sock value: {{ .Values.kubeletPath }}/plugins/ru.yandex.s3.csi/csi.sock
- name: KUBE_NODE_NAME - name: KUBE_NODE_NAME
valueFrom: valueFrom:
fieldRef: fieldRef:
@ -95,22 +95,22 @@ spec:
- name: plugin-dir - name: plugin-dir
mountPath: /csi mountPath: /csi
- name: pods-mount-dir - name: pods-mount-dir
mountPath: /var/lib/kubelet/pods mountPath: {{ .Values.kubeletPath }}/pods
mountPropagation: "Bidirectional" mountPropagation: "Bidirectional"
- name: fuse-device - name: fuse-device
mountPath: /dev/fuse mountPath: /dev/fuse
volumes: volumes:
- name: registration-dir - name: registration-dir
hostPath: hostPath:
path: /var/lib/kubelet/plugins_registry/ path: {{ .Values.kubeletPath }}/plugins_registry/
type: DirectoryOrCreate type: DirectoryOrCreate
- name: plugin-dir - name: plugin-dir
hostPath: hostPath:
path: /var/lib/kubelet/plugins/ru.yandex.s3.csi path: {{ .Values.kubeletPath }}/plugins/ru.yandex.s3.csi
type: DirectoryOrCreate type: DirectoryOrCreate
- name: pods-mount-dir - name: pods-mount-dir
hostPath: hostPath:
path: /var/lib/kubelet/pods path: {{ .Values.kubeletPath }}/pods
type: Directory type: Directory
- name: fuse-device - name: fuse-device
hostPath: hostPath:

View file

@ -85,11 +85,11 @@ spec:
- "--v=4" - "--v=4"
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/kubelet/plugins/ru.yandex.s3.csi/csi.sock value: {{ .Values.kubeletPath }}/plugins/ru.yandex.s3.csi/csi.sock
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /var/lib/kubelet/plugins/ru.yandex.s3.csi mountPath: {{ .Values.kubeletPath }}/plugins/ru.yandex.s3.csi
- name: csi-s3 - name: csi-s3
image: {{ .Values.images.csi }} image: {{ .Values.images.csi }}
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
@ -99,14 +99,14 @@ spec:
- "--v=4" - "--v=4"
env: env:
- name: CSI_ENDPOINT - name: CSI_ENDPOINT
value: unix:///var/lib/kubelet/plugins/ru.yandex.s3.csi/csi.sock value: unix://{{ .Values.kubeletPath }}/plugins/ru.yandex.s3.csi/csi.sock
- name: NODE_ID - name: NODE_ID
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /var/lib/kubelet/plugins/ru.yandex.s3.csi mountPath: {{ .Values.kubeletPath }}/plugins/ru.yandex.s3.csi
volumes: volumes:
- name: socket-dir - name: socket-dir
emptyDir: {} emptyDir: {}

View file

@ -42,3 +42,5 @@ tolerations:
all: false all: false
node: [] node: []
controller: [] controller: []
kubeletPath: /var/lib/kubelet