-
Notifications
You must be signed in to change notification settings - Fork 209
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
feat(install): remove host dependency on sh or mount #635
Conversation
Some connectivity tests failed, but not sure if related to PR:
Looks like Please restart pipeline. |
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 - thanks.
install/install.go
Outdated
// are available. | ||
// | ||
// See https://github.com/cilium/cilium/issues/17883 | ||
"cp /usr/bin/cilium-mount /hostbin/cilium-mount && " + |
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.
The mountCmd that you are replacing at L678 is to mount the BPF filesystem. However, L692-696 are for mounting cgroup fs.
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.
Looks like we've already mounting BPF here:
Lines 494 to 498 in d2d7498
VolumeMounts: []corev1.VolumeMount{ | |
{ | |
Name: "bpf-maps", | |
MountPath: "/sys/fs/bpf", | |
MountPropagation: &bidirectional, |
I've changed MountPropagation
to bidirectional
, reflecting cilium/cilium#16656.
So I've updated #L678-L745 also with some context from #627
PTAL, should be ok now.
Thanks for the PR. |
Thank you! Will update my implementation according to referred PR. |
28cb0c7
to
a67d5c9
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.
revoking approval as @aditighag found issues.
a67d5c9
to
f1892af
Compare
f1892af
to
a3d6b34
Compare
a3d6b34
to
d2d7498
Compare
install/install.go
Outdated
"github.com/cilium/cilium-cli/defaults" | ||
"github.com/cilium/cilium-cli/internal/certs" | ||
"github.com/cilium/cilium-cli/internal/k8s" | ||
"github.com/cilium/cilium-cli/internal/utils" | ||
"github.com/cilium/cilium-cli/status" | ||
"github.com/cilium/cilium/pkg/versioncheck" | ||
|
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.
Nit: please don't move this import group. We generally try to use the order 1. standard library, 2. packages from own repo, i.e. github.com/cilium/cilium-cli/...
in that case) and 3. other 3rd party packages.
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.
Done, thank you
d2d7498
to
cd26584
Compare
cd26584
to
6ea4d63
Compare
Commit 2b1679f does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
2b1679f
to
6ea4d63
Compare
Commit 2b1679f does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
6ea4d63
to
c63668b
Compare
This allows running `cilium install` on Talos. Signed-off-by: Aleksandr Razumov <ernado@ya.ru>
c63668b
to
7f67acd
Compare
Not sure how to fix it, so keeping init container for PTAL. |
Gentle ping @aditighag |
What error are you hitting? |
Also, this comment is not addresses - #635 (comment). This PR is adding cgroup mount init container - #627. |
Looks like I'm lacking knowledge of internals, so closing this for now can't fully understand how eBPF fs is mounted. For anybody interested: this PR works with Talos, rebase and build to use if needed. |
This allows running
cilium install
on Talos.Signed-off-by: Aleksandr Razumov ernado@ya.ru
Ref: cilium/cilium#17883
Ref: cilium/cilium#16815
Checked on Talos with one control node and one worker: