Skip to content

Commit

Permalink
Merge pull request #311 from dysnix/nvme-raid-add-raid-opts
Browse files Browse the repository at this point in the history
[gcp-local-nvme-raid] add raidOpts
  • Loading branch information
voron authored Jul 24, 2024
2 parents 7dbc524 + 7c01fe5 commit 18eb970
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dysnix/gcp-local-nvme-raid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Deamon installation which create raid with local nvme disk in gke n

type: application

version: 0.1.0
version: 0.1.1

appVersion: "1.16.0"

Expand Down
2 changes: 1 addition & 1 deletion dysnix/gcp-local-nvme-raid/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
device="/dev/${raid_id}"
echo "Setting RAID array with Local SSDs on device ${device}"
if ! grep -q "$raid_id" /proc/mdstat; then
echo "y" | mdadm --create "${device}" --level=0 --force --raid-devices=${#devices[@]} "${devices[@]}"
echo "y" | mdadm --create "${device}" --level=0 --force {{ .Values.localSsd.raidOpts }} --raid-devices=${#devices[@]} "${devices[@]}"
fi
if ! tune2fs -l "${device}" ; then
Expand Down
1 change: 1 addition & 0 deletions dysnix/gcp-local-nvme-raid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ affinity: {}

localSsd:
mkfsOpts: ""
raidOpts: ""
mountPoint: /mnt/disks/raid0

0 comments on commit 18eb970

Please sign in to comment.