Skip to content

Commit

Permalink
Allow additional volume mounts on node pods
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSirenko committed Jul 5, 2023
1 parent 280ac42 commit 3de7fde
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/aws-ebs-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ spec:
mountPath: /csi
- name: device-dir
mountPath: /dev
{{- with .Values.node.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- name: healthz
containerPort: 9808
Expand Down Expand Up @@ -206,3 +209,6 @@ spec:
type: Directory
- name: probe-dir
emptyDir: {}
{{- with .Values.node.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
22 changes: 22 additions & 0 deletions charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,18 @@ controller:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
# Add additional volume mounts on the controller with controller.volumes and controller.volumeMounts
volumes: []
# Add additional volumes to be mounted onto the controller like:
# - name: custom-dir
# hostPath:
# path: /path/to/dir
# type: Directory
volumeMounts: []
# And add mount paths for those additional volumes like:
# - name: custom-dir
# mountPath: /mount/path
# ---
# securityContext on the controller container (see sidecars for securityContext on sidecar containers)
containerSecurityContext:
readOnlyRootFilesystem: true
Expand Down Expand Up @@ -328,6 +338,18 @@ node:
runAsUser: 0
runAsGroup: 0
fsGroup: 0
# Add additional volume mounts on the node pods with node.volumes and node.volumeMounts
volumes: [ ]
# Add additional volumes to be mounted onto the node pods like:
# - name: custom-dir
# hostPath:
# path: /path/to/dir
# type: Directory
volumeMounts: [ ]
# And add mount paths for those additional volumes like:
# - name: custom-dir
# mountPath: /mount/path
# ---
# securityContext on the node container (see sidecars for securityContext on sidecar containers)
containerSecurityContext:
readOnlyRootFilesystem: true
Expand Down

0 comments on commit 3de7fde

Please sign in to comment.