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: README.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,29 @@
6
6

7
7
8
8
version-checker is a Kubernetes utility for observing the current versions of
9
-
images running in the cluster, as well as the latest available upstream. These
10
-
checks get exposed as Prometheus metrics to be viewed on a dashboard, or _soft_
11
-
alert cluster operators.
9
+
images running in the cluster, as well as the latest available upstream. Additionally,
10
+
it monitors the Kubernetes cluster version against the latest available releases
11
+
using official Kubernetes release channels. These checks get exposed as Prometheus
12
+
metrics to be viewed on a dashboard, or _soft_ alert cluster operators.
13
+
14
+
## Features
15
+
16
+
-**Container Image Version Checking**: Monitor and compare container image versions running in the cluster against their latest upstream versions
17
+
-**Kubernetes Version Monitoring**: Track your cluster's Kubernetes version against the latest available releases from official Kubernetes channels
18
+
-**Prometheus Metrics Integration**: Export all version information as Prometheus metrics for monitoring and alerting
19
+
-**Flexible Channel Selection**: Configure which Kubernetes release channel to track (stable, latest, etc.)
12
20
13
21
---
14
22
15
23
## Why Use version-checker?
16
24
17
-
-**Improved Security**: Ensures images are up-to-date, reducing the risk of using vulnerable or compromised versions.
18
-
-**Enhanced Visibility**: Provides a clear overview of all running container versions across clusters.
19
-
-**Operational Efficiency**: Automates image tracking and reduces manual intervention in version management.
20
-
-**Compliance and Policy**: Enforcement: Helps maintain version consistency and adherence to organizational policies.
25
+
-**Improved Security**: Ensures images and Kubernetes clusters are up-to-date, reducing the risk of using vulnerable or compromised versions.
26
+
-**Enhanced Visibility**: Provides a clear overview of all running container versions and cluster versions across clusters.
27
+
-**Operational Efficiency**: Automates image and Kubernetes version tracking and reduces manual intervention in version management.
28
+
-**Compliance and Policy Enforcement**: Helps maintain version consistency and adherence to organizational policies for both applications and infrastructure.
21
29
-**Incremental Upgrades**: Facilitates frequent, incremental updates to reduce the risk of large, disruptive upgrades.
22
30
-**Add-On Compatibility**: Ensures compatibility with the latest versions of Kubernetes add-ons and dependencies.
31
+
-**Proactive Cluster Management**: Stay informed about Kubernetes security updates and new features through automated version monitoring.
23
32
24
33
---
25
34
@@ -45,6 +54,7 @@ These registries support authentication.
version-checker now includes built-in Kubernetes cluster version monitoring capabilities. This feature automatically compares your cluster's current Kubernetes version against the latest available versions from official Kubernetes release channels.
4
+
5
+
### How It Works
6
+
7
+
The Kubernetes version checker:
8
+
- Fetches the current cluster version using the Kubernetes Discovery API
9
+
- Compares it against the latest version from the configured Kubernetes release channel (using official `https://dl.k8s.io/release/` endpoints)
10
+
- Exposes the comparison as Prometheus metrics for monitoring and alerting
11
+
- Strips metadata from versions for accurate semantic version comparison (e.g., `v1.28.2-gke.1` becomes `v1.28.2`)
12
+
13
+
### Configuration
14
+
15
+
You can configure the Kubernetes version checking behavior using the following CLI flags:
16
+
17
+
-`--kube-channel`: Specifies which Kubernetes release channel to check against (default: `"stable"`)
0 commit comments