-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: logging and pf improvements, skip namespaces & non-ClusterIP svcs
This PR contains a number of reliability and UX improvements for using localizer in a larger cluster. * When creating a port-forward, we don't pass a stop channel anymore. This was previously passed `ctx.Done()` which would silently stop the port-forward on ^C. This caused invalid "use of closed connection" logging that was confusing to the user but also possibly could end up in a port-forward not being fully stopped. * When shutting down, pass a temporary context that has a timeout of 30 seconds. This ensures that `/etc/host` modifications, ip pool cleanups, and other shutdown functions properly finish instead of possibly being terminated midway through during normal shutdown. * Enabled delibird to remove tracing/metrics information being sent by default in localizer binaries. This is a OSS friendly way of us getting telemetry by logging to disk instead, which a user can opt to send us when reporting bugs (more on that in future work!) * Upgraded all dependencies, including `client-go`. We still need a fork, but thankfully our fork is a single line now so it's much more likely we can upstream the change we made (the other change was upstreamed a year ago by another user!) * Exposes `stderr` from the port-forwarder to the console with a colored prefix. This makes it easier to tell when a port-forward was busted but localizer didn't detect it (or if it did, why it failed!) * Skipped namespaces by default (`kube-system`) and enabled the user to pass `--skip-namespace` to provide more (helps #212). * Skip non-clusterIP services. These aren't addressable in the cluster, so we shouldn't create a tunnel for them. This helps with `NodePort` and `LoadBalancer` service overhead that some larger clusters may have. * Reduced logging to be easier to read, while keeping a lot of helpful logs in the `debug` level. Defaults to `info` logging instead of `debug` logging (pass `--log-level debug` for that!)
- Loading branch information
1 parent
41773d1
commit 15948c9
Showing
12 changed files
with
395 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.