Skip to content

gbraad/dockerfile-kubernetes-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes client

"Prompt"

Docker container image with the Kubernetes client.

Motivation

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.

Registries

Gitlab

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

Docker hub

Alternative automated build images are available from the Docker registry.

  • Fedora:
    docker pull gbraad/kubernetes-client:fedora

Usage

Setup an alias

Setup a local alias makes running the container a lot easier

Container based on Fedora

$ alias kubectl='docker run -it --rm -v $PWD:/workspace registry.gitlab.com/gbraad/kubernetes-client:fedora kubectl'

Issue command

$ kubectl --server=192.168.1.100:8080 get nodes

Authors

"Gerard Braad"
@gbraad

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages