Public | Automated Build

Last pushed: 5 months ago
Short Description
Install Kubernetes on a machine. Accept version number, components env for specific installation.
Full Description

Install Kerbernetes Components

An Alpine based image to install Kerbernetes components from Kubernetes official binary release site.
The binaries (linux/amd64) are installed in /shared volume which you can mount on host's installation directory.

The container accept two environment variables: VERSION and COMPONENTS.

Usage Examples

  • Install the default components kube-apiserver kube-controller-manager kube-scheduler, and kubectl.
$ docker run --rm -v /opt/bin/kubernetes:/shared xueshanf/install-kubernetes
  • Install specific components:

    $ docker run --env COMPONENTS="kube-apiserver kube-controller-manager kube-scheduler" --rm -v /opt/bin/kubernetes:/shared xueshanf/install-kubernetes


    $ docker run --env COMPONENTS="kubectl" --rm -v /opt/bin/kubernetes:/shared xueshanf/install-kubernetes
  • Install specific version:

$ docker run --env VERSION="v1.4.3" --rm -v /opt/bin/kubernetes:/shared xueshanf/install-kubernetes
Docker Pull Command
Source Repository