-
Notifications
You must be signed in to change notification settings - Fork 394
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
capi: make containerd CRI socket configurable #433
Conversation
Hi @dongsupark. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
3840feb
to
89a2340
Compare
/assign @ncdc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
Thanks for breaking this out, @dongsupark.
I have one request. Rather than putting containerd_cri_socket
into every other OS, let's instead put it in config/containerd.json
. Since the existing value of /var/run/containerd/containerd.sock
is indeed a default for all current OS's, there's no need to define it each place.
looking forward to flatcar support, you can then override this value in only your flatcar.json
file. The makefile ensures that the OS-specific JSON file is loaded after all the "defaults" that are in the config
folder, which for Packer means the OS-specific JSON files take precedence.
/assign @moshloop
^ Moshe, I know you wanted to see this happen separately as well.
89a2340
to
e64142e
Compare
@codenrhoden Done. |
@fabriziopandini this is probably worth your 👀 too - thanks |
/lgtm Will wait for others to chime in. |
@@ -0,0 +1 @@ | |||
runtime-endpoint: unix://{{ containerd_cri_socket }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there also be a related change to one of the task files in images/capi/ansible/roles/containerd/tasks
to reference this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there also be a related change to one of the task files in images/capi/ansible/roles/containerd/tasks to reference this file?
Good catch. Thanks.
I forgot about moving the corresponding changes from #248, when splitting out the PR.
Updated this PR.
We should be able to configure path to containerd CRI socket file, `containerd_cri_socket`, for each distro. Its main use case is to support distros with different CRI socket path, for example, `/run/docker/libcontainerd/container.sock` for Flatcar. By default it is `/var/run/containerd/containerd.sock` as it has been in all other distros. This PR is split out from kubernetes-sigs#248, as suggested by codenrhoden.
e64142e
to
6aebc8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve Thanks for the assist @detiber |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: codenrhoden, dongsupark The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
We should be able to configure path to containerd CRI socket file,
containerd_cri_socket
, for each distro.Its main use case is to support distros with different CRI socket path, for example,
/run/docker/libcontainerd/container.sock
for Flatcar.By default it is
/var/run/containerd/containerd.sock
as it has been in all other distros.This PR is split out from #248, as suggested by @codenrhoden.