Skip to content

Mount host /proc into calico-node at /host/proc - #5165

Open
radixo wants to merge 1 commit into
tigera:masterfrom
radixo:resolve-pod-netns
Open

Mount host /proc into calico-node at /host/proc#5165
radixo wants to merge 1 commit into
tigera:masterfrom
radixo:resolve-pod-netns

Conversation

@radixo

@radixo radixo commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Description

Companion to the calico-side "Resolve pod netns in Felix" change (implements design tigera/designs#62). Felix's new pod-netns resolution reaches host-mount-namespace paths (pod netns files, the CRI socket) through host PID-1's root at /host/proc/1/root, which works regardless of calico-node's PID namespace and does not require hostPID=true.

This PR bind-mounts the host's /proc into calico-node at /host/proc (read-only), reusing the existing nodeproc HostPath(/proc) volume. The existing hostPID=true usage for process-path collection is left as-is; converging it is a separate Enterprise follow-up.

  • Affected: pkg/render/node.go (+ node render test). No API change.
  • The ValidatingAdmissionPolicy delivery and the Installation.spec.cniAnnotationsPolicy toggle land in a follow-up PR stacked on this one.

Release Note

The operator bind-mounts the host /proc into calico-node at /host/proc (read-only) to support Felix pod network-namespace resolution.

🤖 Generated with Claude Code

Felix's pod-netns resolution reaches host-mount-namespace paths (pod
netns files, the CRI socket) through host PID-1's root at
/host/proc/1/root, which works regardless of calico-node's PID
namespace and does not require hostPID=true.

Mount the host's /proc into calico-node at /host/proc (read-only),
reusing the existing "nodeproc" HostPath(/proc) volume. The existing
hostPID=true usage for process-path collection is left as-is;
converging it is a separate Enterprise follow-up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@radixo

radixo commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Companion Calico PR: projectcalico/calico#13501 (Felix pod-netns resolution). Follow-up (stacked on this one): the CNI-annotations ValidatingAdmissionPolicy delivery + Installation.spec.cniAnnotationsPolicy toggle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants