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

Added examples of subPath volume mount with fuse sidecar #7

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

everpeace
Copy link
Contributor


Recently, kubernetes v1.30 supports sidecar containers(a.k.a. restartable init containers) by default. It don't needs for application containers to wait fuse mount is finished manually.

This PR adds:

  • sidecar container examples
  • subPath mount examples and tests
    • because subPath volume may be created by kubelet before the fuse is mounted to the prepared mountpoint, sidecar is must for using subPath volume mount.
  • update NOICE section to describe these.

@everpeace everpeace changed the title Added subpath with fuse sidecar examples Added examples of subPath volume mount with fuse sidecar Sep 5, 2024
@everpeace everpeace force-pushed the subpath-requires-sidecar branch from d14de24 to 836a076 Compare September 6, 2024 05:31
@naoki9911
Copy link
Collaborator

Thanks!

@naoki9911 naoki9911 merged commit 563d2e8 into pfnet-research:main Sep 6, 2024
1 check passed
$(eval $(call test-example-template,proxy,sshfs,deploy.yaml,starter,/root/sshfs-example/subdir/test.txt,busybox,/data/subdir/test.txt))
$(eval $(call test-example-template,starter,ros3fs,deploy.yaml,starter,/test.txt,busybox,/data/subdir/test.txt))
$(eval $(call test-example-template,starter,sshfs,deploy.yaml,starter,/root/sshfs-example/subdir/test.txt,busybox,/data/subdir/test.txt))
ifdef TEST_SUBPATH
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shall we test subpath volumes in Github Actions?

The default kind version in the Github-Hosted runner(ubuntu-latest) already supports sidecar containers .

Copy link
Collaborator

Choose a reason for hiding this comment

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

Of course, thanks!

BTW: It would be better to recommend users to use sidecar container as a default usage.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. I will create another PR for it.

Copy link
Contributor Author

@everpeace everpeace Sep 6, 2024

Choose a reason for hiding this comment

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

I opened #8

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.

2 participants