Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0aa53d5
commit 07ff332
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
kubectl-outdated finds and reports on any outdated images running in a Kubernetes cluster. | ||
|
||
## Usage | ||
The following assumes you have kubectl-outdated installed via | ||
|
||
```shell | ||
kubectl krew install outdated | ||
``` | ||
|
||
### Scan images in your current kubecontext | ||
|
||
```shell | ||
kubectl outdated | ||
``` | ||
|
||
### Scan images in another kubecontext | ||
|
||
```shell | ||
kubectl outdated --kubecconfig=/path/to/kubeconfig | ||
``` | ||
|
||
## How it works | ||
The plugin will iterate through readable namespaces, and look for pods. For every pod it can read, the plugin will read the podspec for the container images, and any init container images. Additionally, it collects the content sha of the image, so that it can be used to disambiguate between different versions pushed with the same tag. | ||
|
||
After collecting a list of images running and deduplicating this list, the plugin will anonymously connect to all required image repositories and request a list of tags. For tags and images that follow strict semver naming, the list is simply sorted and the plugin reports how out of date the running image is. | ||
|
||
For images that aren't semver named, the plugin starts to collect tags dates from the manifest and sorts to find any tag that was pushed after the tag that is running. | ||
|