File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,7 @@ SSD-equipped nodes are highly recommended. Full list of CloudLab nodes can be fo
100
100
> To enable runs with ` stargz` images, setup kubelet by adding the ` stock-only` and ` use-stargz`
101
101
> flags as follows:
102
102
> ` ` ` bash
103
- > ./scripts/cloudlab/setup_node.sh stock-only use-stargz > >( tee -a /tmp/vhive-logs
104
- > setup_worker_kubelet.stdout) 2> >( tee -a /tmp/vhive-logs/setup_worker_kubelet.stderr >&2 )
103
+ > ./scripts/cloudlab/setup_node.sh stock-only use-stargz > >( tee -a /tmp/vhive-logs/setup_node.stdout) 2> >( tee -a /tmp/vhive-logs/setup_node.stderr >&2 )
105
104
> ` ` `
106
105
> ** IMPORTANT**
107
106
> Currently ` stargz` is only supported in native kubelet contexts without firecracker.
@@ -248,7 +247,7 @@ Execute the following below **as a non-root user with sudo rights** using **bash
248
247
> To enable runs with `stargz` images, setup kubelet by adding the `stock-only` and `use-stargz`
249
248
> flags as follows:
250
249
> ```bash
251
- > ./scripts/cloudlab/setup_node.sh; stock-only use-stargz
250
+ > ./scripts/cloudlab/setup_node.sh stock-only use-stargz
252
251
> ```
253
252
> **IMPORTANT**
254
253
> Currently `stargz` is only supported in native kubelet contexts without firecracker.
@@ -292,12 +291,6 @@ Execute the following below **as a non-root user with sudo rights** using **bash
292
291
./scripts/github_runner/clean_cri_runner.sh
293
292
```
294
293
295
- > **IMPORTANT:**
296
- > If the setup script was done using the `stock-only` and `use-stargz` flags, add the corresponding flags to the script as follows:
297
- > ```bash
298
- > ./scripts/github_runner/clean_cri_runner.sh stock-only use-stargz
299
- > ```
300
-
301
294
### 3. Using a Script
302
295
This script stops the existing cluster if any, cleans up and then starts a fresh single-node cluster.
303
296
Original file line number Diff line number Diff line change @@ -60,5 +60,5 @@ if [ "$SANDBOX" == "firecracker" ]; then
60
60
fi
61
61
62
62
if [ " $USE_STARGZ " == " use-stargz" ]; then
63
- $SCRIPTS /stargz/setup_stock_only_stargz .sh
63
+ $SCRIPTS /stargz/setup_stargz .sh
64
64
fi
Original file line number Diff line number Diff line change @@ -4,16 +4,17 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4
4
ROOT=" $( cd $DIR && cd ../.. && pwd) "
5
5
BINS=$ROOT /bin
6
6
CONFIGS=$ROOT /configs/stargz
7
+ STARGZ_VERSION=v0.13.0
7
8
8
9
# Get stargz snapshotter tar
9
- wget --continue --quiet https://github.com/containerd/stargz-snapshotter/releases/download/v0.13.0 /stargz-snapshotter-v0.13.0 -linux-amd64.tar.gz
10
+ wget --continue --quiet https://github.com/containerd/stargz-snapshotter/releases/download/${STARGZ_VERSION} /stargz-snapshotter-${STARGZ_VERSION} -linux-amd64.tar.gz
10
11
11
12
# Copy stargz config
12
13
sudo mkdir -p /etc/containerd
13
14
sudo cp $CONFIGS /config.toml /etc/containerd/config.toml
14
15
15
16
# Unzip stargz binary and install it
16
- sudo tar -C /usr/local/bin -xvf stargz-snapshotter-v0.13.0 -linux-amd64.tar.gz containerd-stargz-grpc ctr-remote
17
+ sudo tar -C /usr/local/bin -xvf stargz-snapshotter-${STARGZ_VERSION} -linux-amd64.tar.gz containerd-stargz-grpc ctr-remote
17
18
18
19
# Download stargz snapshotter service configuration file
19
20
sudo wget -O /etc/systemd/system/stargz-snapshotter.service https://raw.githubusercontent.com/containerd/stargz-snapshotter/main/script/config/etc/systemd/system/stargz-snapshotter.service
You can’t perform that action at this time.
0 commit comments