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
-`-` The Kubernetes cluster has features the client-go library can't use (additional API objects, deprecated APIs, etc).
77
77
78
-
**Note:** The `v2.0.0-alpha.2+` and `master` releases of kube-state-metrics work on Kubernetes v1.17 and v1.18 excluding Ingress or CertificateSigningRequest resource metrics. If you require those metrics and are on an older Kubernetes version, use v2.0.0-alpha.1 or v1.9.7 kube-state-metrics release.
78
+
**Note:** The `v2.0.0-alpha.2+` and `master` releases of kube-state-metrics work on Kubernetes v1.17 and v1.18 excluding Ingress or CertificateSigningRequest resource metrics. If you require those metrics and are on an older Kubernetes version, use v2.0.0-alpha.1 or v1.9.8 kube-state-metrics release.
79
79
80
80
#### Resource group version compatibility
81
81
@@ -86,7 +86,7 @@ release.
86
86
#### Container Image
87
87
88
88
The latest container image can be found at:
89
-
*`k8s.gcr.io/kube-state-metrics/kube-state-metrics:v2.0.0-rc.0` (arch: `amd64`, `arm`, `arm64`, `ppc64le` and `s390x`)
89
+
*`k8s.gcr.io/kube-state-metrics/kube-state-metrics:v2.0.0-rc.1` (arch: `amd64`, `arm`, `arm64`, `ppc64le` and `s390x`)
Copy file name to clipboardExpand all lines: docs/cli-arguments.md
+32-32Lines changed: 32 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,36 +25,36 @@ spec:
25
25
```txt
26
26
$ kube-state-metrics -h
27
27
Usage of ./kube-state-metrics:
28
-
--add_dir_header If true, adds the file directory to the header of the log messages
29
-
--alsologtostderr log to standard error as well as files
30
-
--apiserver string The URL of the apiserver to use as a master
31
-
--enable-gzip-encoding Gzip responses when requested by clients via 'Accept-Encoding: gzip' header.
32
-
-h, --help Print Help text
33
-
--host string Host to expose metrics on. (default "::")
34
-
--kubeconfig string Absolute path to the kubeconfig file
35
-
--labels-metric-allow-list stringAllows to pass a list of additional Kubernetes label keys that will be used in the resource' labels metric. By default the metric contains only name and namespace labels. To include additional labels provide a list of resource names in their plural form and Kubernetes label keys you would like to allow for them (Example: '=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)'
36
-
--log_backtrace_at traceLocationwhen logging hits line file:N, emit a stack trace (default :0)
37
-
--log_dir string If non-empty, write log files in this directory
38
-
--log_file stringIf non-empty, use this log file
39
-
--log_file_max_size uintDefines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
40
-
--logtostderr log to standard error instead of files (default true)
41
-
--metric-allowlist string Comma-separated list of metrics to be exposed. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive.
42
-
--metric-denylist string Comma-separated list of metrics not to be enabled. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive.
43
-
--namespaces string Comma-separated list of namespaces to be enabled. Defaults to ""
44
-
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level)
45
-
--pod string Name of the pod that contains the kube-state-metrics container. When set, it is expected that --pod and --pod-namespace are both set. Most likely this should be passed via the downward API. This is used for auto-detecting sharding. If set, this has preference over statically configured sharding. This is experimental, it may be removed without notice.
46
-
--pod-namespace string Name of the namespace of the pod specified by --pod. When set, it is expected that --pod and --pod-namespace are both set. Most likely this should be passed via the downward API. This is used for auto-detecting sharding. If set, this has preference over statically configured sharding. This is experimental, it may be removed without notice.
47
-
--port int Port to expose metrics on. (default 8080)
48
-
--resources string Comma-separated list of Resources to be enabled. Defaults to "certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments"
49
-
--shard int32 The instances shard nominal (zero indexed) within the total number of shards. (default 0)
50
-
--skip_headers If true, avoid header prefixes in the log messages
51
-
--skip_log_headers If true, avoid headers when opening log files
52
-
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
53
-
--telemetry-host string Host to expose kube-state-metrics self metrics on. (default "::")
54
-
--telemetry-port int Port to expose kube-state-metrics self metrics on. (default 8081)
55
-
--tls-config string Path to the TLS configuration file
56
-
--total-shards int The total number of shards. Sharding is disabled when total shards is set to 1. (default 1)
57
-
-v, --v Level number for the log level verbosity
58
-
--version kube-state-metrics build version information
59
-
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
28
+
--add_dir_header If true, adds the file directory to the header of the log messages
29
+
--alsologtostderr log to standard error as well as files
30
+
--apiserver string The URL of the apiserver to use as a master
31
+
--enable-gzip-encoding Gzip responses when requested by clients via 'Accept-Encoding: gzip' header.
32
+
-h, --help Print Help text
33
+
--host string Host to expose metrics on. (default "::")
34
+
--kubeconfig string Absolute path to the kubeconfig file
35
+
--log_backtrace_at traceLocationwhen logging hits line file:N, emit a stack trace (default :0)
36
+
--log_dir string If non-empty, write log files in this directory
37
+
--log_file string If non-empty, use this log file
38
+
--log_file_max_size uintDefines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
39
+
--logtostderr log to standard error instead of files (default true)
40
+
--metric-allowlist stringComma-separated list of metrics to be exposed. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive.
41
+
--metric-denylist string Comma-separated list of metrics not to be enabled. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive.
42
+
--metric-labels-allowlist string Comma-separated list of additional Kubernetes label keys that will be used in the resource' labels metric. By default the metric contains only name and namespace labels. To include additional labels provide a list of resource names in their plural form and Kubernetes label keys you would like to allow for them (Example: '=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)'
43
+
--namespaces string Comma-separated list of namespaces to be enabled. Defaults to ""
44
+
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level)
45
+
--pod string Name of the pod that contains the kube-state-metrics container. When set, it is expected that --pod and --pod-namespace are both set. Most likely this should be passed via the downward API. This is used for auto-detecting sharding. If set, this has preference over statically configured sharding. This is experimental, it may be removed without notice.
46
+
--pod-namespace string Name of the namespace of the pod specified by --pod. When set, it is expected that --pod and --pod-namespace are both set. Most likely this should be passed via the downward API. This is used for auto-detecting sharding. If set, this has preference over statically configured sharding. This is experimental, it may be removed without notice.
47
+
--port int Port to expose metrics on. (default 8080)
48
+
--resources string Comma-separated list of Resources to be enabled. Defaults to "certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments"
49
+
--shard int32 The instances shard nominal (zero indexed) within the total number of shards. (default 0)
50
+
--skip_headers If true, avoid header prefixes in the log messages
51
+
--skip_log_headers If true, avoid headers when opening log files
52
+
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
53
+
--telemetry-host string Host to expose kube-state-metrics self metrics on. (default "::")
54
+
--telemetry-port int Port to expose kube-state-metrics self metrics on. (default 8081)
55
+
--tls-config string Path to the TLS configuration file
56
+
--total-shards int The total number of shards. Sharding is disabled when total shards is set to 1. (default 1)
57
+
-v, --v Level number for the log level verbosity
58
+
--version kube-state-metrics build version information
59
+
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
0 commit comments