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
@@ -203,7 +203,7 @@ Note that if CPU limits are set too low, kube-state-metrics' internal queues wil
203
203
204
204
In a 100 node cluster scaling test the latency numbers were as follows:
205
205
206
-
```
206
+
```text
207
207
"Perc50": 259615384 ns,
208
208
"Perc90": 475000000 ns,
209
209
"Perc99": 906666666 ns.
@@ -267,7 +267,7 @@ Each kube-state-metrics pod uses FieldSelector (spec.nodeName) to watch/list pod
267
267
268
268
A daemonset kube-state-metrics example:
269
269
270
-
```
270
+
```yaml
271
271
apiVersion: apps/v1
272
272
kind: DaemonSet
273
273
spec:
@@ -289,7 +289,7 @@ spec:
289
289
290
290
To track metrics for unassigned pods, you need to add an additional deployment and set `--track-unscheduled-pods`, as shown in the following example:
291
291
292
-
```
292
+
```yaml
293
293
apiVersion: apps/v1
294
294
kind: Deployment
295
295
spec:
@@ -309,16 +309,16 @@ Other metrics can be sharded via [Horizontal sharding](#horizontal-sharding).
309
309
310
310
Install this project to your `$GOPATH` using `go get`:
311
311
312
-
```
313
-
go get k8s.io/kube-state-metrics
312
+
```bash
313
+
go get k8s.io/kube-state-metrics/v2
314
314
```
315
315
316
316
#### Building the Docker container
317
317
318
318
Simply run the following command in this root folder, which will create a
319
319
self-contained, statically-linked binary and build a Docker image:
320
320
321
-
```
321
+
```bash
322
322
make container
323
323
```
324
324
@@ -341,7 +341,7 @@ To have Prometheus discover kube-state-metrics instances it is advised to create
341
341
342
342
**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:
343
343
344
-
```
344
+
```bash
345
345
kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$(gcloud info --format='value(config.account)')
346
346
```
347
347
@@ -416,14 +416,14 @@ When developing, test a metric dump against your local Kubernetes cluster by run
416
416
417
417
> Users can override the apiserver address in KUBE-CONFIG file with `--apiserver` command line.
0 commit comments