Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Yadong Ding <ding_yadong@foxmail.com>
  • Loading branch information
Desiki-high committed Nov 15, 2023
1 parent 756a915 commit 0b08c2e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions misc/performance/cni_bridge.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cniVersion": "0.4.0",
"name": "bridge",
"type": "bridge",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"ipam": {
"type": "host-local",
"subnet": "10.10.0.0/16",
"routes": [
{ "dst": "0.0.0.0/0" }
]
}
}
2 changes: 1 addition & 1 deletion misc/performance/nydusd_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"fs_prefetch": {
"enable": false
}
}
}
1 change: 1 addition & 0 deletions misc/performance/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ sudo tar -xzvf nerdctl-$NERDCTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin
sudo mkdir -p /opt/cni/bin
sudo wget https://github.com/containernetworking/plugins/releases/download/v$CNI_PLUGINS_VERSION/cni-plugins-linux-amd64-v$CNI_PLUGINS_VERSION.tgz
sudo tar -xzvf cni-plugins-linux-amd64-v$CNI_PLUGINS_VERSION.tgz -C /opt/cni/bin
sudo install -D misc/performance/cni_bridge.conf /etc/cni/net.d/bridge.conf
sudo install -D misc/performance/nydusd_config.json /etc/nydus/config.json
sudo install -D misc/performance/containerd_config.toml /etc/containerd/config.toml
sudo systemctl restart containerd
Expand Down

0 comments on commit 0b08c2e

Please sign in to comment.