Skip to content

Commit

Permalink
* [fix] fix nfs install path typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Sep 12, 2024
1 parent a5f58da commit b446b6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion hack/manifests/storage/nfs-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
set -e

if type apt >/dev/null 2>&1; then
export PATH=/usr/sbin:$PATH
apt update
apt install -y nfs-common nfs-kernel-server
elif type yum >/dev/null 2>&1; then
export PATH=/sbin:$PATH
yum makecache
yum install -y nfs-utils
else
Expand All @@ -28,7 +30,6 @@ systemctl restart nfs-server
echo "$SPATH *(insecure,rw,sync,no_root_squash,no_subtree_check)" > /etc/exports

exportfs -r

showmount -e 127.0.0.1

touch $SPATH/.quickon
3 changes: 2 additions & 1 deletion hack/manifests/storage/nfs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

ip=${1:-127.0.0.1}
path=${2:-/opt/quickon/storage/nfs}

kubectl get sc | grep q-nfs >/dev/null 2>&1 && exit 0

Expand All @@ -11,6 +12,6 @@ helm repo update
helm upgrade -i q-nfs install/nfs-subdir-external-provisioner \
-n quickon-storage \
--set nfs.server=${ip} \
--set nfs.path=/opt/quickon/storage/nfs \
--set nfs.path=${path} \
--set storageClass.defaultClass=true \
--set storageClass.name=q-nfs

0 comments on commit b446b6e

Please sign in to comment.