| commit | 1dd0c6591533bf63389e81a2104bca3c8326e871 | [log] [tgz] |
|---|---|---|
| author | Lorenz Brun <lorenz@monogon.tech> | Tue Feb 20 18:45:06 2024 +0100 |
| committer | Lorenz Brun <lorenz@monogon.tech> | Tue Feb 20 18:12:12 2024 +0000 |
| tree | e33a710087b67dfe7f34e8434cff8885dc38420c | |
| parent | 456961d6589c1afec75954ca94ed631e1f380566 [diff] |
m/n/kubernetes: improve CSI registration reliability Kubelet's plugin registration mechanism is quite awful, it relies on being notified by inotify that a new registration socket has been placed into a specific path, which it then interrogates and reports back if the registration succeeded. That registration sometimes involves network operations which are prone to failure. It reports that failure back to the registration server asynchronously but does not attempt to retry the process. To actually get Kubelet to retry, one needs to remove and recreate the registration socket. This change implements such a mechanism, recreating the socket and registration server on every reported registration failure. Supervisor backoff is used to prevent busy-looping on non-transient errors. Change-Id: I79eaf0efdf55ccdede15d8cee42cda7c276e4b50 Reviewed-on: https://review.monogon.dev/c/monogon/+/2785 Reviewed-by: Serge Bazanski <serge@monogon.tech> Reviewed-by: Tim Windelschmidt <tim@monogon.tech> Tested-by: Jenkins CI
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm (if you want to run tests).Our docs assume that Bazelisk is available as bazel on your PATH.
Refer to SETUP.md for detailed instructions.
The source code lives in //metropolis (Metropolis is the codename of Monogon OS).
See the //metropolis/README.md for a developer quick start guide, or see the Monogon OS Handbook for user documentation.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch --config dbg
Launch an ephemeral test node:
bazel test //:launch --config dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test --config dbg //...