Minimal Docker image with kubectl
This image is based on distroless and comes in two variants:
The minimal image is based on gcr.io/distroless/static-debian12:nonroot
and does not contain a shell. It can be directly used from the command line, eg:
$ docker run --rm -it ghcr.io/rwunderer/kubectl:v1.27.7-minimal version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.27.7
Kustomize Version: v5.0.1
The connection to the server localhost:8080 was refused - did you specify the right host or port?
The debug images is based on gcr.io/distroless/base-debian12:debug-nonroot
and contains a busybox shell for use in ci images.
As kubectl's output is also available in json it also containts jq.
E.g. for GitLab CI do:
list images:
image:
name: ghcr.io/rwunderer/kubectl:v1.27.7-debug
entrypoint: [""]
script:
- kubectl get nodes -o json | jq
Badge | Description |
---|---|
Automatic Tagging of new kubectl releases | |
Docker image build |