mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-16 09:16:38 +00:00
Update additional-scrape-config.md (#4965)
When running only with --dry-run, it throws below error `W0811 06:10:30.118640 32368 helpers.go:555] --dry-run is deprecated and can be replaced with --dry-run=client.`
This commit is contained in:
parent
501d079e3d
commit
9f64561535
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ Below we are making a simple "prometheus" config. Name this
|
|||
Then you will need to make a secret out of this configuration.
|
||||
|
||||
```sh
|
||||
kubectl create secret generic additional-scrape-configs --from-file=prometheus-additional.yaml --dry-run -oyaml > additional-scrape-configs.yaml
|
||||
kubectl create secret generic additional-scrape-configs --from-file=prometheus-additional.yaml --dry-run=client -oyaml > additional-scrape-configs.yaml
|
||||
```
|
||||
|
||||
Next, apply the generated kubernetes manifest
|
||||
|
|
Loading…
Add table
Reference in a new issue