-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't load kubernetes cliet until cli app starts (#3)
Co-authored-by: Max Williams <[email protected]>
- Loading branch information
1 parent
95e23b5
commit c70ba66
Showing
4 changed files
with
22 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
Is your Kubernetes cluster unhealthy? Do your workloads have symptoms? Then maybe it needs a checkup with `kube-doctor` 🏥 | ||
|
||
```shell | ||
```console | ||
$ kube-doctor --warning-symptoms --non-namespaced-resources | ||
== Checking DaemonSet resources | ||
👀 DaemonSet kube-system/efs-csi-node: efs-plugin no resources specified | ||
|
@@ -93,66 +93,66 @@ This tool will check for the following symptoms: | |
|
||
By default `kube-doctor` will check all namespaces but it can also target a specific namespace: | ||
|
||
```shell | ||
```console | ||
kube-doctor --namespace kube-system | ||
``` | ||
|
||
Or label selector;: | ||
|
||
```shell | ||
```console | ||
kube-doctor --label-selector app.kubernetes.io/name=prometheus | ||
``` | ||
|
||
Or a combination of both: | ||
|
||
```shell | ||
```console | ||
kube-doctor --label-selector app.kubernetes.io/name=prometheus --namespace monitoring | ||
``` | ||
|
||
Non-namespaced resources like nodes can be checked with the `--non-namespaced-resources` flag: | ||
|
||
```shell | ||
```console | ||
kube-doctor --non-namespaced-resources | ||
``` | ||
|
||
To see other options, including debug logging, consult the help: | ||
|
||
```shell | ||
```console | ||
kube-doctor --help | ||
``` | ||
|
||
## Installation | ||
|
||
Check out code and build: | ||
|
||
```shell | ||
```console | ||
git clone [email protected]:max-rocket-internet/kube-doctor.git | ||
cd kube-doctor | ||
go build ./... && go install ./... | ||
``` | ||
|
||
Run from `main` branch without `git`: | ||
|
||
```shell | ||
```console | ||
go install github.com/max-rocket-internet/kube-doctor@latest | ||
cd $GOPATH/pkg/mod/github.com/max-rocket-internet/kube-doctor*/ | ||
go run main.go | ||
``` | ||
|
||
To get a binary, check [the releases](https://github.com/max-rocket-internet/kube-doctor/releases). | ||
To download a binary, check [the releases](https://github.com/max-rocket-internet/kube-doctor/releases). | ||
|
||
## Contributing | ||
|
||
Pull requests welcome 💙 | ||
|
||
To run all tests: | ||
|
||
```shell | ||
```console | ||
go test ./... | ||
``` | ||
|
||
Or just a single package: | ||
|
||
```shell | ||
```console | ||
go test ./.../checkup | ||
``` |
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