Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <[email protected]>
  • Loading branch information
duckhawk committed Jun 20, 2024
1 parent 4244391 commit 11b9bf1
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions templates/csi/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,32 +72,39 @@
###

{{- define "csi_node_args" }}
- "--nodename=$(NODE_ID)"
- "--endpoint=$(CSI_ENDPOINT)"
- "--endpoint=/csi/csi.sock"
- "--dr-endpoint=$(DRCSI_ENDPOINT)"
- "--driver-name=csi.huawei.com"
- "--connector-threads=4"
- "--volume-use-multipath=true"
- "--all-path-online=false"
- "--kubelet-volume-devices-dir-name=/volumeDevices/"
- "--scsi-multipath-type=DM-multipath"
- "--nvme-multipath-type=HW-UltraPath-NVMe"
- "--scan-volume-timeout=3"
- "--exec-command-timeout=30"
- "--logging-module=file"
- "--log-level=info"
- "--log-file-dir=/var/log/huawei"
- "--log-file-size=20M"
- "--max-backups=9"
{{- end }}

{{- define "csi_node_envs" }}
- name: CSI_ENDPOINT
value: /csi/csi.sock
- name: DRCSI_ENDPOINT
value: /csi/dr-csi.sock
- name: CSI_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: NODE_ID
- name: CSI_NODENAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName

{{- end }}


{{- define "csi_additional_node_volume" }}
- hostPath:
path: /var/lib/iscsi
Expand Down

0 comments on commit 11b9bf1

Please sign in to comment.