Skip to content

Commit

Permalink
Merge pull request #3003 from qiutongs/daemon-doc
Browse files Browse the repository at this point in the history
Update cadvisor daemonset doc to customize the image version
  • Loading branch information
bobbypage authored Nov 9, 2021
2 parents ee149fa + aaa2e4b commit 99d3532
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion deploy/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ cAdvisor uses [Kustomize](https://github.com/kubernetes-sigs/kustomize) to manag

## Usage

From the cadvisor/ directory, to generate the base daemonset:
Pick a [cAdvisor release](https://github.com/google/cadvisor/releases)
```
VERSION=v0.42.0
```

To update the image version([reference](https://github.com/kubernetes-sigs/kustomize/blob/master/examples/image.md)):
```
cd deploy/kubernetes/base && kustomize edit set image gcr.io/cadvisor/cadvisor:${VERSION} && cd ../../..
```

To generate the base daemonset:
```
kubectl kustomize deploy/kubernetes/base
```
Expand Down

0 comments on commit 99d3532

Please sign in to comment.