Docker container image with the Kubernetes client.
Although you can easily install a statically compiled kubectl
as follows:
$ wget http://storage.googleapis.com/kubernetes-release/release/v1.3.4/bin/linux/amd64/kubectl
$ chmod +x kubectl
Note: this can also be seen in the scratch
(static) container build.
However, the Fedora based container will be used for ansible-container
to perform
container compostion and deployment. This means that everything to maintain the lifecycle
of your app will be available from a single container.
Automated builds are available at GitLab
- Static:
docker pull registry.gitlab.com/gbraad/kubernetes-client:static
- Fedora:
docker pull registry.gitlab.com/gbraad/kubernetes-client:fedora
Alternative automated build images are available from the Docker registry.
- Fedora:
docker pull gbraad/kubernetes-client:fedora
Setup a local alias makes running the container a lot easier
$ alias kubectl='docker run -it --rm -v $PWD:/workspace registry.gitlab.com/gbraad/kubernetes-client:fedora kubectl'
$ kubectl --server=192.168.1.100:8080 get nodes
@gbraad |