Make kubelet path configurable (#123)
This commit is contained in:
@@ -21,6 +21,7 @@ A Helm chart to install the SPIFFE CSI driver.
|
|||||||
| image.repository | string | `"spiffe/spiffe-csi-driver"` | |
|
| image.repository | string | `"spiffe/spiffe-csi-driver"` | |
|
||||||
| image.version | string | `""` | |
|
| image.version | string | `""` | |
|
||||||
| imagePullSecrets | list | `[]` | |
|
| imagePullSecrets | list | `[]` | |
|
||||||
|
| kubeletPath | string | `"/var/lib/kubelet"` | |
|
||||||
| nameOverride | string | `""` | |
|
| nameOverride | string | `""` | |
|
||||||
| namespaceOverride | string | `""` | |
|
| namespaceOverride | string | `""` | |
|
||||||
| nodeDriverRegistrar.image.pullPolicy | string | `"IfNotPresent"` | |
|
| nodeDriverRegistrar.image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ spec:
|
|||||||
- mountPath: /spiffe-csi
|
- mountPath: /spiffe-csi
|
||||||
name: spiffe-csi-socket-dir
|
name: spiffe-csi-socket-dir
|
||||||
# The volume containing mount points for containers.
|
# The volume containing mount points for containers.
|
||||||
- mountPath: /var/lib/kubelet/pods
|
- mountPath: {{ .Values.kubeletPath }}/pods
|
||||||
mountPropagation: Bidirectional
|
mountPropagation: Bidirectional
|
||||||
name: mountpoint-dir
|
name: mountpoint-dir
|
||||||
securityContext:
|
securityContext:
|
||||||
@@ -75,7 +75,7 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.nodeDriverRegistrar.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.nodeDriverRegistrar.image.pullPolicy }}
|
||||||
args: [
|
args: [
|
||||||
"-csi-address", "/spiffe-csi/csi.sock",
|
"-csi-address", "/spiffe-csi/csi.sock",
|
||||||
"-kubelet-registration-path", "/var/lib/kubelet/plugins/{{ .Values.pluginName }}/csi.sock",
|
"-kubelet-registration-path", "{{ .Values.kubeletPath }}/plugins/{{ .Values.pluginName }}/csi.sock",
|
||||||
"-health-port", "{{ .Values.healthChecks.port }}"
|
"-health-port", "{{ .Values.healthChecks.port }}"
|
||||||
]
|
]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -105,16 +105,16 @@ spec:
|
|||||||
# This volume is where the socket for kubelet->driver communication lives
|
# This volume is where the socket for kubelet->driver communication lives
|
||||||
- name: spiffe-csi-socket-dir
|
- name: spiffe-csi-socket-dir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/kubelet/plugins/{{ .Values.pluginName }}
|
path: {{ .Values.kubeletPath }}/plugins/{{ .Values.pluginName }}
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
# This volume is where the SPIFFE CSI driver mounts volumes
|
# This volume is where the SPIFFE CSI driver mounts volumes
|
||||||
- name: mountpoint-dir
|
- name: mountpoint-dir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/kubelet/pods
|
path: {{ .Values.kubeletPath }}/pods
|
||||||
type: Directory
|
type: Directory
|
||||||
# This volume is where the node-driver-registrar registers the plugin
|
# This volume is where the node-driver-registrar registers the plugin
|
||||||
# with kubelet
|
# with kubelet
|
||||||
- name: kubelet-plugin-registration-dir
|
- name: kubelet-plugin-registration-dir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/kubelet/plugins_registry
|
path: {{ .Values.kubeletPath }}/plugins_registry
|
||||||
type: Directory
|
type: Directory
|
||||||
|
|||||||
@@ -71,5 +71,7 @@ nodeDriverRegistrar:
|
|||||||
|
|
||||||
agentSocketPath: /run/spire/agent-sockets/spire-agent.sock
|
agentSocketPath: /run/spire/agent-sockets/spire-agent.sock
|
||||||
|
|
||||||
|
kubeletPath: /var/lib/kubelet
|
||||||
|
|
||||||
# -- Priority class assigned to daemonset pods
|
# -- Priority class assigned to daemonset pods
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user