https://github.com/stakater/dockerfile-k8s-installer
Install Kubernetes (k8s) components with a docker image
https://github.com/stakater/dockerfile-k8s-installer
docker-image kubernetes
Last synced: about 2 months ago
JSON representation
Install Kubernetes (k8s) components with a docker image
- Host: GitHub
- URL: https://github.com/stakater/dockerfile-k8s-installer
- Owner: stakater
- License: apache-2.0
- Created: 2017-06-21T13:24:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:52:42.000Z (over 2 years ago)
- Last Synced: 2024-04-15T04:16:19.695Z (about 2 years ago)
- Topics: docker-image, kubernetes
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
* COMPONENTS
# Usage Examples
* Install the default components __kube-apiserver kube-controller-manager kube-scheduler, and kubectl__.
```
$ docker run --rm -v /opt/bin/kubernetes:/shared stakater/k8s-installer
```
* Install specific components:
```
$ docker run --env COMPONENTS="kube-apiserver kube-controller-manager kube-scheduler" --rm -v /opt/bin/kubernetes:/shared stakater/k8s-installer
```
Or:
```
$ docker run --env COMPONENTS="kubectl" --rm -v /opt/bin/kubernetes:/shared stakater/k8s-installer
```
* Install specific version:
```
$ docker run --env VERSION="v1.4.3" --rm -v /opt/bin/kubernetes:/shared stakater/k8s-installer
```
# Credits
* [Install Kubernetes](https://github.com/xueshanf/install-kubernetes)