Skip to content

Commit a853fa5

Browse files
authored
Merge pull request #539 from andyzhangx/file-max
feat: set max open file num in blobfuse-proxy deployment
2 parents 9798e89 + d3c1999 commit a853fa5

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

deploy/blobfuse-proxy/blobfuse-proxy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ spec:
4949
dpkg -i /tmp/blobfuse-proxy.deb
5050
rm -f /tmp/packages-microsoft-prod.deb /tmp/blobfuse-proxy.deb
5151
mkdir -p /var/lib/kubelet/plugins/blob.csi.azure.com
52+
echo "set max open file num"
53+
sysctl -w fs.file-max=9000000
5254
echo "Enabling blobfuse proxy systemctl service"
5355
systemctl daemon-reload
5456
systemctl enable blobfuse-proxy

deploy/install-driver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if [ $ver != "master" ]; then
3434
fi
3535

3636
if [[ "$#" -gt 1 ]]; then
37-
if [[ "$2" == *"local"* ]] && [[ "$2" == *"enable-blobfuse-proxy"* ]]; then
37+
if [[ "$2" == *"local"* ]] && [[ "$2" == *"blobfuse-proxy"* ]]; then
3838
echo "set enable-blobfuse-proxy as true ..."
3939
kubectl apply -f ./deploy/blobfuse-proxy/blobfuse-proxy.yaml
4040
sed -i 's/enable-blobfuse-proxy=false/enable-blobfuse-proxy=true/g' $repo/csi-blob-node.yaml

deploy/uninstall-driver.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ if [ $ver != "master" ]; then
3333
repo="$repo/$ver"
3434
fi
3535

36+
if [[ "$#" -gt 1 ]]; then
37+
if [[ "$2" == *"blobfuse-proxy"* ]]; then
38+
echo "remove blobfuse-proxy deployment ..."
39+
kubectl delete -f ./deploy/blobfuse-proxy/blobfuse-proxy.yaml
40+
fi
41+
fi
42+
3643
echo "Uninstalling Azure Blob Storage CSI driver, version: $ver ..."
3744
kubectl delete -f $repo/csi-blob-controller.yaml --ignore-not-found
3845
kubectl delete -f $repo/csi-blob-node.yaml --ignore-not-found

test/sanity/run-tests-all-clouds.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function install_csi_sanity_bin {
2323
mkdir -p $GOPATH/src/github.com/kubernetes-csi
2424
pushd $GOPATH/src/github.com/kubernetes-csi
2525
export GO111MODULE=off
26-
git clone https://github.com/kubernetes-csi/csi-test.git -b v4.2.0
26+
git clone https://github.com/kubernetes-csi/csi-test.git -b v4.3.0
2727
pushd csi-test/cmd/csi-sanity
2828
make install
2929
popd

0 commit comments

Comments
 (0)