Skip to content

use anonymous volume for /var/lib/kubelet #773

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

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

BenTheElder
Copy link
Member

@BenTheElder BenTheElder commented Aug 15, 2019

fixes #771

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 15, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 15, 2019
@BenTheElder
Copy link
Member Author

FYI @cjwagner this should obviate the need for the additional mount in the local prowjob tool.

@BenTheElder BenTheElder added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Aug 15, 2019
@BenTheElder BenTheElder requested a review from amwat August 15, 2019 22:46
@neolit123
Copy link
Member

fixes #770

is 770 correct here?

@BenTheElder
Copy link
Member Author

corrected to 771

// ensure pods etc. are not on container filesystem
// TODO: we could do this in the image instead
// However this would leave old images with this issue
"-v", "/var/lib/kubelet",
Copy link
Member

@neolit123 neolit123 Aug 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, this would expose the kind nodes to the host /var/lib/kubelet that may already contain kubelet data, which may result in:

  • the kubelet on the node re-using the existing kubelet certificates
  • the kubelet on the node stomping kubelet data on the host

EDIT: 771

Copy link
Member Author

@BenTheElder BenTheElder Aug 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, this would expose the kind nodes to the host /var/lib/kubelet that may already contain kubelet data, which may result in: ...

no, that's not what this does. this is an anonymous volume, not a bind mount.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my mistake.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this flag format does a lot of in-band signaling 😅
soon moving this to higher level logic... going to need to re-work that a bit now 🙃

Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 15, 2019
@BenTheElder
Copy link
Member Author

prow is broken at the moment. I've tested this locally and FWIW this is the same thing we do for /var/lib/containerd, just via a different means.

@BenTheElder BenTheElder merged commit 74d0c9d into kubernetes-sigs:master Aug 15, 2019
@BenTheElder BenTheElder deleted the pod-fs branch August 15, 2019 23:05
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. 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. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pod stuck in Terminating if a configmap is mounted with subPath
3 participants