Skip to content
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

Self-hosting should use a file lock #168

Closed
luxas opened this issue Feb 16, 2017 · 7 comments
Closed

Self-hosting should use a file lock #168

luxas opened this issue Feb 16, 2017 · 7 comments
Assignees
Labels
priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@luxas
Copy link
Member

luxas commented Feb 16, 2017

See: kubernetes-retired/bootkube#264 and kubernetes-retired/bootkube#262

Currently kubeadm does not use a flock when deploying in self-hosted mode.
And we can't rely on the flock binary being in the container: #167

cc @pires @errordeveloper @aaronlevy

@luxas
Copy link
Member Author

luxas commented Feb 16, 2017

Related PR where I discovered this: kubernetes/kubernetes#41400

@pires
Copy link
Contributor

pires commented Feb 17, 2017

You can rely on your fix of the flock usage for now and until we have a better solution in place, which I believe won't be in the form of a file-lock, given we won't have access to any other binaries other than the apiserver, for instance, and I'm not seeing such code getting in.

@luxas luxas added area/self-hosting priority/backlog Higher priority than priority/awaiting-more-evidence. labels May 29, 2017
@luxas luxas self-assigned this May 29, 2017
@jamiehannaford
Copy link
Contributor

Bootkube are considering removing this because the self-hosted apiserver will eventually come up after the pivot, even without a flock

@luxas
Copy link
Member Author

luxas commented Jun 30, 2017

@jamiehannaford Thanks for pointing that out; would be awesome if we waited that thing out.
I had a lot of issues with trying to implement it; different flock binaries for different base images for the control plane for example... adding the right mounts and making sure things race well is quite hard.

Anyway, I can also confirm that selfhosting seems to work well without the flock...

@luxas
Copy link
Member Author

luxas commented Jun 30, 2017

cc @aaronlevy Can we close this?

@aaronlevy
Copy link

We're likely going to remove the flock (but hasn't merged quite yet). Can close, or if you want to wait till it's merged, fine too.

flock was mostly an optimization during bootstrap: the pivot could take as long as the exponential backoff retry period to retry starting the apiserver -- which was annoying in some cases (and shows a high restart count at the end of bootstrap). But as long as kubelet doesn't go down, it will start the apiserver eventually. It also sort of helps with checkpointing, but isn't actually necessary with current behavior.

@luxas
Copy link
Member Author

luxas commented Jun 30, 2017

Ok, then I'm closing... Thanks!

@luxas luxas closed this as completed Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

4 participants