Skip to content

Commit

Permalink
docs: Supplementary for containerd configuration required by nydus sn…
Browse files Browse the repository at this point in the history
…apshotter

Supplementary for containerd configuration required by nydus
snapshotter: `disable_snapshot_annotations` and
`discard_unpacked_layers`.

Signed-off-by: ChengyuZhu6 <[email protected]>
  • Loading branch information
ChengyuZhu6 committed Jan 12, 2024
1 parent 0397a1f commit 0041455
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/run_nydus_in_kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ nodes:
Next, we also need a config for containerd(`containerd-config.toml`).

**NOTE:** It may be necessary to explain here why `disable_snapshot_annotations` and `discard_unpacked_layers` need to be configured in containerd.
- `disable_snapshot_annotations`: This variable disables to pass additional annotations (image related information) to snapshotters in containerd (default value is `true`). In nydus snapshotter, we need these annotations to pull images. Therefore, we need to set it to `false`.
- `discard_unpacked_layers`: This variable allows GC to remove layers from the content store after successfully unpacking these layers to the snapshotter in containerd (default value is `true`). In nydus snapshotter, we need to preserve layers for demand pulling and sharing even after they are unpacked. Therefore, we need to set it to `false`.

```toml
version = 2
[debug]
Expand Down

0 comments on commit 0041455

Please sign in to comment.