WIP: add golang-based containerd setup helper#128
Conversation
WIP Signed-off-by: Francesco Romani <fromani@redhat.com>
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ffromani The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fmuyassarov
left a comment
There was a problem hiding this comment.
Thanks @ffromani, I know it is still WIP but probably good time to ask few questions.
- I'm wondering if you have considered using dbus (via go-systemd) directly instead of host systemctl?
- Would it be rather convenient from the user's perspective to have an optional init container for runtime config (along side the driver Pod) changes rather than the Job?
- Should be also try to cover the CRI-O?
| # Configures containerd on all worker nodes to enable NRI and CDI. | ||
| # Only needed for runtimes older than containerd 2.0 / CRI-O 1.30. |
There was a problem hiding this comment.
or in case when NRI/CDI is disabled prior to driver installation.
It surely is!
Nope, I used
I think the job is better because separation of concerns and separation of required privileges. Unless I'm mistaken, re-introducing a initContainer will also require a privilege bump, which I'd rather avoid.
Yes! If we decide to go forward with this approach I will deep dive in crio and add the crio counterpart code. |
If we use an init container and dbus, we would need to mount the following paths:
Compared to the current Job configuration, this reduces the exposure of the host filesystem. Instead of mounting the whole With Job, we also put operational burden on the user because they need to know the node count, run the Job manually and check if it succeeded on each node. With init container, they can just pass a single flag (e.g. |
I'm not insisting to use dbus specifically or init container over Job. I just want to make sure that |
These are all good points. The operational mode using dbus has surely upsides worth a serious look, thanks for raising. The delivery mechanism - jobs vs initContainer I'm still not thrilled but I do see your point. Let's iterate with this approach a bit more, I won't be firmly against a opt-in, disabled-by-default init container task even though I'd really prefer a stronger separation of concerns if possible. But "if possible" is the key here. |
|
PR needs rebase. DetailsInstructions 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-sigs/prow repository. |
WIP