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
@@ -204,7 +204,7 @@ Note that if CPU limits are set too low, kube-state-metrics' internal queues wil
204
204
205
205
In a 100 node cluster scaling test the latency numbers were as follows:
206
206
207
-
```
207
+
```text
208
208
"Perc50": 259615384 ns,
209
209
"Perc90": 475000000 ns,
210
210
"Perc99": 906666666 ns.
@@ -268,7 +268,7 @@ Each kube-state-metrics pod uses FieldSelector (spec.nodeName) to watch/list pod
268
268
269
269
A daemonset kube-state-metrics example:
270
270
271
-
```
271
+
```yaml
272
272
apiVersion: apps/v1
273
273
kind: DaemonSet
274
274
spec:
@@ -290,7 +290,7 @@ spec:
290
290
291
291
To track metrics for unassigned pods, you need to add an additional deployment and set `--track-unscheduled-pods`, as shown in the following example:
292
292
293
-
```
293
+
```yaml
294
294
apiVersion: apps/v1
295
295
kind: Deployment
296
296
spec:
@@ -316,16 +316,16 @@ When scraping the individual pods directly in an HA setup, Prometheus will inges
316
316
317
317
Install this project to your `$GOPATH` using `go get`:
318
318
319
-
```
320
-
go get k8s.io/kube-state-metrics
319
+
```bash
320
+
go get k8s.io/kube-state-metrics/v2
321
321
```
322
322
323
323
#### Building the Docker container
324
324
325
325
Simply run the following command in this root folder, which will create a
326
326
self-contained, statically-linked binary and build a Docker image:
327
327
328
-
```
328
+
```bash
329
329
make container
330
330
```
331
331
@@ -348,7 +348,7 @@ To have Prometheus discover kube-state-metrics instances it is advised to create
348
348
349
349
**Note:** Google Kubernetes Engine (GKE) Users - GKE has strict role permissions that will prevent the kube-state-metrics roles and role bindings from being created. To work around this, you can give your GCP identity the cluster-admin role by running the following one-liner:
350
350
351
-
```
351
+
```bash
352
352
kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$(gcloud info --format='value(config.account)')
353
353
```
354
354
@@ -423,14 +423,14 @@ When developing, test a metric dump against your local Kubernetes cluster by run
423
423
424
424
> Users can override the apiserver address in KUBE-CONFIG file with `--apiserver` command line.
0 commit comments