Skip to content

Commit 7e0eaa5

Browse files
authored
Update cli-arguments.md
1 parent 2dc529d commit 7e0eaa5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/developer/cli-arguments.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ kube-state-metrics \
124124
--namespaces-denylist="default,kube-system"
125125
```
126126

127-
## Config-file support
127+
### Config-file support
128128

129129
You can provide a YAML config file using the `--config` flag instead of (or in addition to) command-line flags. Any flags passed on the command line will override values in the config file.
130130

@@ -144,11 +144,11 @@ Run with config file:
144144
kube-state-metrics --config=config.yaml --port=8085
145145
```
146146

147-
## Mutual-exclusion of allowlists and denylists
147+
### Mutual-exclusion of allowlists and denylists
148148

149149
For metrics, annotations, and labels, allowlists and denylists cannot be used together. If both are specified, the allowlist takes precedence and the denylist is ignored.
150150

151-
## Kubernetes Deployment example
151+
### Kubernetes Deployment example
152152

153153
You can embed any of the flags in a Deployment manifest under `args:`:
154154

@@ -163,7 +163,7 @@ spec:
163163
- "--server-idle-timeout=2m"
164164
```
165165
166-
## Experimental flags
166+
### Experimental flags
167167
168168
The following flags are experimental and subject to change:
169169
@@ -172,7 +172,7 @@ The following flags are experimental and subject to change:
172172
* `--shard`, `--total-shards`
173173
* `--track-unscheduled-pods`
174174

175-
## Custom Resource State metrics
175+
### Custom Resource State metrics
176176

177177
You can enable custom resource state metrics using:
178178

@@ -190,7 +190,7 @@ resources:
190190
- Running
191191
```
192192

193-
## Auth-filter example
193+
### Auth-filter example
194194

195195
Protect the metrics endpoint with Kubernetes RBAC by enabling the auth filter and providing a kubeconfig:
196196

0 commit comments

Comments
 (0)