Skip to content

Commit

Permalink
Merge #213
Browse files Browse the repository at this point in the history
213: Document how to run kube-score against an existing Kubernetes cluster r=zegl a=zegl

Not using 'kubectl get all', as it doesn't include all types of objects that kube-score might support in the future


Co-authored-by: Gustav Westling <[email protected]>
  • Loading branch information
bors[bot] and zegl authored Jan 30, 2020
2 parents 8dc3bd2 + 4356445 commit e5dc999
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can test kube-score out in the browser with the [online demo](https://kube-s

Pre-built releases can be downloaded from the [GitHub releases](https://github.com/zegl/kube-score/releases), from [Docker Hub](https://hub.docker.com/r/zegl/kube-score/), or with homebrew:

```bash
```bash
brew install kube-score/tap/kube-score
```

Expand Down Expand Up @@ -59,6 +59,14 @@ kube-score score my-app/*.yaml
kube-score score my-app/deployment.yaml my-app/service.yaml
```

### Example with an existing cluster

```bash
kubectl api-resources --verbs=list --namespaced -o name \
| xargs -n1 -I{} bash -c "kubectl get {} --all-namespaces -oyaml && echo ---" \
| kube-score score -
```

## Configuration

```
Expand Down

0 comments on commit e5dc999

Please sign in to comment.