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
Comments
Related PR where I discovered this: kubernetes/kubernetes#41400 |
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. |
Bootkube are considering removing this because the self-hosted apiserver will eventually come up after the pivot, even without a flock |
@jamiehannaford Thanks for pointing that out; would be awesome if we waited that thing out. Anyway, I can also confirm that selfhosting seems to work well without the flock... |
cc @aaronlevy Can we close this? |
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. |
Ok, then I'm closing... Thanks! |
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: #167cc @pires @errordeveloper @aaronlevy
The text was updated successfully, but these errors were encountered: