xuwang / install-kubernetes

Install Kubernetes components with a docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Or:

$ 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

About

Install Kubernetes components with a docker image

License:Apache License 2.0


Languages

Language:Shell 100.0%