Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add docs for running nydus snapshotter in Kubernetes #297

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

liubin
Copy link
Contributor

@liubin liubin commented Dec 29, 2022

This new document will describe how to create a local Kubernetes cluster using kind and then deploy nydus snapshotter in the Kubernetes cluster.

Signed-off-by: bin liu liubin0329@gmail.com

[plugins."io.containerd.grpc.v1.cri".containerd]
discard_unpacked_layers = false
disable_snapshot_annotations = false
snapshotter = "overlayfs"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change the CRI snapshotter to nydus?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do that? First, we should pull the nydus-snapshotter image and start the container, then the nydus snapshotter can be used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Nydus-snapshotter is deployed as DaemonSet and packed in an OCI container image.
Is it the same containerd pulling OCI image packing nydus-snapshotter and nydus image?
If yes, I don't understand how the containerd can choose nydus as snapshotter when pulling the nydus image ghcr.io/dragonflyoss/image-service/nginx:nydus-latest since containerd can only configure statically the snapshotter type here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the current helm chart, the snapshotter will be pulled and unpacked by overlayfs, and then change the global snapshotter to nydus and restart the containerd after the snapshotter started.

docs/run_nydus_in_kubernetes.md Outdated Show resolved Hide resolved
This new document will describe how to create a local Kubernetes cluster
using kind and then deploy nydus snapshotter in the Kubernetes cluster.

Signed-off-by: bin liu <liubin0329@gmail.com>
Copy link
Member

@changweige changweige left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@changweige changweige merged commit 908a596 into containerd:main Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants