1
0
Fork 0
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:
jainsmit 2022-08-11 04:41:24 -07:00 committed by GitHub
parent 501d079e3d
commit 9f64561535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. Then you will need to make a secret out of this configuration.
```sh ```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 Next, apply the generated kubernetes manifest