Skip to content

Commit

Permalink
Add k8s pod/service subnet addrs to /etc/exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
carboxylman committed Jan 18, 2023
1 parent 7fdf0c2 commit 0b869ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup-nfs-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ if [ -n "$NFSASYNC" -a $NFSASYNC -eq 1 ]; then
syncopt="async"
fi
echo "$NFSEXPORTDIR $networkip/$prefix(rw,$syncopt,no_root_squash,no_subtree_check,fsid=0)" | $SUDO tee -a /etc/exports
echo "$NFSEXPORTDIR $KUBEPODSSUBNET(rw,$syncopt,no_root_squash,no_subtree_check,fsid=0)" | $SUDO tee -a /etc/exports
echo "$NFSEXPORTDIR $KUBESERVICEADDRESSES(rw,$syncopt,no_root_squash,no_subtree_check,fsid=0)" | $SUDO tee -a /etc/exports

echo "OPTIONS=\"-l -h 127.0.0.1 -h $dataip\"" | $SUDO tee /etc/default/rpcbind
$SUDO sed -i.bak -e "s/^rpcbind/#rpcbind/" /etc/hosts.deny
Expand Down

0 comments on commit 0b869ed

Please sign in to comment.