eagleeyetom/k8s-kubectl

By eagleeyetom

Updated about 1 year ago

Kubernetes client (kubectl)

Image
Integration & delivery
Developer tools
0

5.1K

eagleeyetom/k8s-kubectl repository overview

This project is a fork of https://github.com/lachie83/k8s-kubectl and is slightly adapted to do the same thing!

This container provides the Kubernetes client kubectl which can be used to interact with a Kubernetes cluster.

Supported OS/ARCH linux/amd64 linux/arm64 linux/s390x linux/ppc64le

Massive thanks to barthy1 via PR for contributing this work.

Build make docker_build

Run docker run --rm eagleeyetom/k8s-kubectl:git rev-parse --abbrev-ref HEAD --server=http://:8080 get pods

Data Container 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 Data container with kubectl container docker run --rm -it --volumes-from data k8s/kubectl: --server=http://:8080 create -f /data/controller.yml

Tag summary

Content type

Image

Digest

sha256:f1c1d71d4

Size

255 Bytes

Last updated

about 1 year ago

docker pull eagleeyetom/k8s-kubectl:sha256-d752ddd6a5871bd4115d5b4a2ab8e289ad8018b0abad7dd8dfea6b6dd8f80248.sig