Containerized Kubernetes kubectl
10K+
This project contains Kubernetes related utilities for use in build/deploy pipelines that have docker.
The following utilities are included:
It's mostly meant to be used during continuous integration or as part of an automated build/deployment:
kubectl or other cli tools to be installed; only Docker.kubectl config use-context and similar to affect your build and other projects' builds.$ docker run --rm bartlettc22/kubectl kubectl --help
For example to access a local Kubernetes cluster you may run:
$ docker run --rm --net=host --user $UID \
-v ~/.kube:/config/.kube \
cbartlett22/kubectl kubectl cluster-info
docker run --rm -it \
-v ${HOME}/.aws:/config/.aws \
-e "AWS_PROFILE=$AWS_PROFILE" \
-e "KOPS_NAME=blue.testcluster.io" \
-e "KOPS_STATE_STORE=s3://kubectl-state" \
bartlettc/docker-kubectl \
sh -c "kops export kubecfg --name \$KOPS_NAME; kubecfg version"
Content type
Image
Digest
Size
101.4 MB
Last updated
almost 9 years ago
docker pull bartlettc/docker-kubectl