v1.25.4
,latest
(v1.25.4/Dockerfile)v1.24.8
, (v1.24.8/Dockerfile)v1.23.14
, (v1.23.14/Dockerfile)v1.22.16
, (v1.22.16/Dockerfile)v1.21.12
, (v1.21.12/Dockerfile)v1.20.15
, (v1.20.15/Dockerfile)v1.19.16
, (v1.19.16/Dockerfile)v1.18.20
, (v1.18.20/Dockerfile)v1.17.17
, (v1.17.17/Dockerfile)v1.16.14
, (v1.16.14/Dockerfile)v1.15.12
, (v1.15.12/Dockerfile)v1.14.10
, (v1.14.10/Dockerfile)v1.13.12
, (v1.13.12/Dockerfile)v1.12.10
, (v1.12.10/Dockerfile)v1.11.9
, (v1.11.9/Dockerfile)v1.10.12
, (v1.10.12/Dockerfile)v1.9.10
, (v1.9.10/Dockerfile)v1.8.15
, (v1.8.15/Dockerfile)v1.7.16
(v1.7.16/Dockerfile)v1.6.13
, (v1.6.13/Dockerfile)v1.5.8
, (v1.5.8/Dockerfile)v1.4.12
, (v1.4.12/Dockerfile)v1.3.10
, (v1.3.10/Dockerfile)v1.2.6
, (v1.2.6/Dockerfile)v1.1.8
, (v1.1.8/Dockerfile)v1.0.7
, (v1.0.7/Dockerfile)
This container provides the Kubernetes client kubectl which can be used to interact with a Kubernetes cluster.
- linux/amd64
- linux/arm64
- linux/s390x
- linux/ppc64le
Massive thanks to barthy1 via PR for contributing this work.
make docker_build
docker run --rm lachlanevenson/k8s-kubectl:``git rev-parse --abbrev-ref HEAD`` --server=http://<server-name>:8080 get pods
In order to get kube spec files accessible via the kubectl container please use the following data container that exposes a data volume under /data. It dumps everything under cwd in the data container.
cat ~/bin/mk-data-container
#!/usr/bin/env sh
WORKDIR="$1"
if [ -z $WORKDIR ]; then
WORKDIR='.'
fi
cd $WORKDIR
echo "FROM debian:jessie\n\nVOLUME [ '/data' ]\n\nCOPY * /data/" > ./Dockerfile.data-container
docker rm data
docker build -f ./Dockerfile.data-container -t temp/data .
docker run --name data temp/data
rm ./Dockerfile.data-container
docker run --rm -it --volumes-from data k8s/kubectl:<tag> --server=http://<server-name>:8080 create -f /data/controller.yml