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
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,10 @@
5
5
4. If the PR is unfinished, see how to mark it: https://git.k8s.io/community/contributors/guide/pull-requests.md#marking-unfinished-pull-requests
6
6
-->
7
7
8
-
**What this PR does / why we need it**:
8
+
<!-- markdownlint-disable-next-line MD041 -->
9
+
**What this PR does / why we need it:**
9
10
10
-
**How does this change affect the cardinality of KSM**:*(increases, decreases or does not change cardinality)*
11
+
**How does this change affect the cardinality of KSM:***(increases, decreases or does not change cardinality)*
11
12
12
-
**Which issue(s) this PR fixes***(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
13
+
**Which issue(s) this PR fixes:***(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
+
# Changelog
2
+
1
3
## v2.16.0 / 2025-06-23
2
4
3
-
## Note
5
+
**Note:**
4
6
5
7
* This release builds with Golang `v1.24.4`
6
8
* This release builds with `k8s.io/client-go`: `v0.32.6`
@@ -15,7 +17,7 @@
15
17
16
18
## v2.15.0 / 2025-02-03
17
19
18
-
## Note
20
+
**Note:**
19
21
20
22
* This release builds with Golang `v1.23.5`
21
23
* This release builds with `k8s.io/client-go`: `v0.32.1`
@@ -31,7 +33,7 @@
31
33
32
34
## v2.14.0 / 2024-11-08
33
35
34
-
### Note
36
+
**Note:**
35
37
36
38
* This release builds with Golang `v1.23.3`
37
39
* This release builds with `k8s.io/client-go`: `v0.31.2`
@@ -54,7 +56,7 @@
54
56
55
57
## v2.13.0 / 2024-07-18
56
58
57
-
### Note
59
+
**Note:**
58
60
59
61
* This release builds with Golang `v1.22.5`.
60
62
* This release builds with `k8s.io/client-go`: `v0.30.3`.
@@ -69,7 +71,7 @@
69
71
70
72
## v2.12.0 / 2024-04-02
71
73
72
-
### Note
74
+
**Note:**
73
75
74
76
* This release addresses a critical issue where scraping the exposition data for certain types caused metrics-backends to crash: <https://github.com/kubernetes/kube-state-metrics/issues/2248>.
75
77
* This release builds with `k8s.io/client-go`: `v0.29.3`.
@@ -80,7 +82,7 @@
80
82
81
83
## v2.11.0 / 2024-03-04
82
84
83
-
### Note
85
+
**Note:**
84
86
85
87
This release builds with Golang `v1.21.8`.
86
88
@@ -97,7 +99,7 @@ This release builds with Golang `v1.21.8`.
97
99
98
100
## v2.10.1 / 2023-10-09
99
101
100
-
### Note
102
+
**Note:**
101
103
102
104
* This release addresses a regression introduced in [#2105](https://github.com/kubernetes/kube-state-metrics/pull/2105).
103
105
@@ -106,7 +108,7 @@ This release builds with Golang `v1.21.8`.
106
108
107
109
## v2.10.0 / 2023-08-31
108
110
109
-
### Note
111
+
**Note:**
110
112
111
113
* Label and annotation metrics aren't exposed by default anymore to reduce the memory usage of the default configuration of kube-state-metrics. Before this change, they used to only include the name and namespace of the objects which is not relevant to users not opting in these metrics.
112
114
@@ -139,7 +141,7 @@ This release does not incorporate any user-facing changes. Re-running release pr
139
141
140
142
The changes mentioned below are only the user-facing ones. For a list of the complete set of changes, refer the changelog associated with the release tag.
141
143
142
-
### Note
144
+
**Note:**
143
145
144
146
* The deprecated experimental VerticalPodAutoscaler metrics are no longer supported, and have been removed. We recommend to use CustomResourceState metrics to gather metrics from custom resources like the Vertical Pod Autoscaler.
145
147
*#2004 regulated label names to adhere with [OTel-Prometheus standards](https://github.com/open-telemetry/opentelemetry-specification/blob/8946dfc6a2302f78b0224fcc3f4dfb816a7bb1f4/specification/compatibility/prometheus_and_openmetrics.md?plain=1#L224-L229), so existing label names that do not follow the same may be replaced by the ones that do. Please refer to the PR for more details.
@@ -202,7 +202,7 @@ Note that if CPU limits are set too low, kube-state-metrics' internal queues wil
202
202
203
203
In a 100 node cluster scaling test the latency numbers were as follows:
204
204
205
-
```
205
+
```text
206
206
"Perc50": 259615384 ns,
207
207
"Perc90": 475000000 ns,
208
208
"Perc99": 906666666 ns.
@@ -266,7 +266,7 @@ Each kube-state-metrics pod uses FieldSelector (spec.nodeName) to watch/list pod
266
266
267
267
A daemonset kube-state-metrics example:
268
268
269
-
```
269
+
```yaml
270
270
apiVersion: apps/v1
271
271
kind: DaemonSet
272
272
spec:
@@ -288,7 +288,7 @@ spec:
288
288
289
289
To track metrics for unassigned pods, you need to add an additional deployment and set `--track-unscheduled-pods`, as shown in the following example:
290
290
291
-
```
291
+
```yaml
292
292
apiVersion: apps/v1
293
293
kind: Deployment
294
294
spec:
@@ -308,16 +308,16 @@ Other metrics can be sharded via [Horizontal sharding](#horizontal-sharding).
308
308
309
309
Install this project to your `$GOPATH` using `go get`:
310
310
311
-
```
312
-
go get k8s.io/kube-state-metrics
311
+
```bash
312
+
go get k8s.io/kube-state-metrics/v2
313
313
```
314
314
315
315
#### Building the Docker container
316
316
317
317
Simply run the following command in this root folder, which will create a
318
318
self-contained, statically-linked binary and build a Docker image:
319
319
320
-
```
320
+
```bash
321
321
make container
322
322
```
323
323
@@ -340,7 +340,7 @@ To have Prometheus discover kube-state-metrics instances it is advised to create
340
340
341
341
**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:
342
342
343
-
```
343
+
```bash
344
344
kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$(gcloud info --format='value(config.account)')
345
345
```
346
346
@@ -415,14 +415,14 @@ When developing, test a metric dump against your local Kubernetes cluster by run
415
415
416
416
> Users can override the apiserver address in KUBE-CONFIG file with `--apiserver` command line.
@@ -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