Skip to content

kube-proxy: bind-mount kubeconfig directory instead of the file#18344

Merged
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
hakman:kube-proxy-mount-dir
May 15, 2026
Merged

kube-proxy: bind-mount kubeconfig directory instead of the file#18344
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
hakman:kube-proxy-mount-dir

Conversation

@hakman
Copy link
Copy Markdown
Member

@hakman hakman commented May 15, 2026

A single-file hostPath mount binds to the source inode at mount time, so when something rewrites the kubeconfig the container keeps reading the orphaned inode. Mounting the parent directory matches what kube-scheduler and kube-controller-manager already do.

Fixes #16400

/cc @ameukam @rifelpet

A single-file hostPath mount binds to the source inode at mount time,
so when something rewrites the kubeconfig the container keeps reading
the orphaned inode. Mounting the parent directory matches what
kube-scheduler and kube-controller-manager already do.
@k8s-ci-robot k8s-ci-robot requested review from ameukam and rifelpet May 15, 2026 05:23
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 15, 2026
@hakman
Copy link
Copy Markdown
Member Author

hakman commented May 15, 2026

/approve

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 15, 2026
@ameukam
Copy link
Copy Markdown
Member

ameukam commented May 15, 2026

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 15, 2026
@k8s-ci-robot k8s-ci-robot merged commit 3b4cb9b into kubernetes:master May 15, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong kube-proxy mount bind propagation causes node certificates to not update itself and expire

3 participants