You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
146
+
147
+
## Kubernetes Deployment example
148
+
You can embed any of the flags in a Deployment manifest under `args:`:
149
+
```yaml
150
+
spec:
151
+
template:
152
+
spec:
153
+
containers:
154
+
- name: kube-state-metrics
155
+
args:
156
+
- "--metric-allowlist=kube_pod_info,kube_node_*"
157
+
- "--server-idle-timeout=2m"
158
+
```
159
+
160
+
## Experimental flags
161
+
The following flags are experimental and subject to change:
162
+
- `--auto-gomemlimit`, `--auto-gomemlimit-ratio`
163
+
- `--auth-filter`
164
+
- `--shard`, `--total-shards`
165
+
- `--track-unscheduled-pods`
166
+
167
+
## Custom Resource State metrics
168
+
You can enable custom resource state metrics using:
0 commit comments