Skip to content

Commit 07ff332

Browse files
committed
Add usage doc
1 parent 0aa53d5 commit 07ff332

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/USAGE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
kubectl-outdated finds and reports on any outdated images running in a Kubernetes cluster.
2+
3+
## Usage
4+
The following assumes you have kubectl-outdated installed via
5+
6+
```shell
7+
kubectl krew install outdated
8+
```
9+
10+
### Scan images in your current kubecontext
11+
12+
```shell
13+
kubectl outdated
14+
```
15+
16+
### Scan images in another kubecontext
17+
18+
```shell
19+
kubectl outdated --kubecconfig=/path/to/kubeconfig
20+
```
21+
22+
## How it works
23+
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.
24+
25+
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.
26+
27+
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.
28+

0 commit comments

Comments
 (0)