Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions helm-chart/csi-driver/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ spec:
- name: ADDRESS
value: /csi/csi.sock
- name: DRIVER_REG_SOCK_PATH
value: /var/lib/kubelet/plugins/linodebs.csi.linode.com/csi.sock
value: {{ .Values.kubeletPath | default "/var/lib/kubelet" }}/plugins/linodebs.csi.linode.com/csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
{{- with .Values.csiNodeDriverRegistrar.env }}
{{- toYaml . | nindent 8 }}
{{- end }}
image: {{ .Values.csiNodeDriverRegistrar.image}}:{{ .Values.csiNodeDriverRegistrar.tag}}
name: csi-node-driver-registrar
securityContext:
Expand All @@ -44,6 +47,9 @@ spec:
name: plugin-dir
- mountPath: /registration
name: registration-dir
{{- with .Values.csiNodeDriverRegistrar.volumeMounts }}
{{- toYaml . | nindent 8 }}
{{- end }}
- args:
- --v=2
env:
Expand Down Expand Up @@ -100,15 +106,15 @@ spec:
operator: Exists
volumes:
- hostPath:
path: /var/lib/kubelet/plugins_registry/
path: {{ .Values.kubeletPath | default "/var/lib/kubelet" }}/plugins_registry/
type: DirectoryOrCreate
name: registration-dir
- hostPath:
path: /var/lib/kubelet
path: {{ .Values.kubeletPath | default "/var/lib/kubelet" }}
type: Directory
name: kubelet-dir
- hostPath:
path: /var/lib/kubelet/plugins/linodebs.csi.linode.com
path: {{ .Values.kubeletPath | default "/var/lib/kubelet" }}/plugins/linodebs.csi.linode.com
type: DirectoryOrCreate
name: plugin-dir
- hostPath:
Expand Down
7 changes: 7 additions & 0 deletions helm-chart/csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ volumeLabelPrefix: ""
# Default namespace is "kube-system" but it can be set to another namespace
namespace: kube-system

# Add a kubelet path variable to be used across containers for alternate k8s distros (e.g K0s, K3s)
kubeletPath: "/var/lib/kubelet"

# Set these values if your APIToken and region are already present in a k8s secret.
# secretRef:
# name: "linode"
Expand Down Expand Up @@ -91,6 +94,10 @@ kubectl:
csiNodeDriverRegistrar:
image: registry.k8s.io/sig-storage/csi-node-driver-registrar
tag: v2.12.0
# Additional environment variables for the node driver registrar container
env: []
# Additional volume mounts for the node driver registrar container
volumeMounts: []

controller:
nodeSelector: {}
Expand Down
Loading