Docker image for running kops, kubectl and the Amazon Web Services Command Line Interface.
Based on Debian 11 Buster stable image the versions currently included are kops 1.25.3, kubectl 1.25.5, aws-cli 1.27.34 on Python 3.9.2.
The kops
tool is a command line interface that helps you create, destroy, upgrade and maintain production-grade, highly available, Kubernetes clusters.
The kubectl
is a command line client to deploy and manage applications on Kubernetes.
The aws
command line tool is a command line interface for Amazon Web Services.
The docker-kops creates a Docker image containing all dependencies needed to run kops
, kubectl
and aws
. That way, you can create and manage Kubernetes clusters on aws
in a Docker container without setting dependencies on the host system.
docker run -it \
-e KOPS_STATE_STORE \
-v "$HOME"/.ssh:/home/kops/.ssh:rw \
-v "$HOME"/.aws:/home/kops/.aws:ro \
-v "$HOME"/.kube:/home/kops/.kube:rw \
-v /your/workdir:/home/kops/work \
sigursoft/kops.aws
-
Make sure Docker is installed.
-
Clone docker-kops from GitHub
git clone https://github.com/sigursoft/docker-kops.git
-
Build the docker image
cd docker-kops docker build -t="mykops" .
-
Run a docker container with that image
docker run -t -i mykops
The most recent kops documentation is located on official kops GitHub page.
Kubectl documentation can be found on Kubernetes.io documentation.
For documentation on the AWS CLI, see the AWS command line interface documentation and the aws-cli GitHub page.