Skip to content

rwunderer/kubectl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub license Renovate enabled

kubectl

Minimal Docker image with kubectl

Image variants

This image is based on distroless and comes in two variants:

Minimal image

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?

Debug image

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

Workflows

Badge Description
Auto-Tag Automatic Tagging of new kubectl releases
Docker Docker image build