Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

Support for using Scanner with Kubernetes and Google Container Engine

Notifications You must be signed in to change notification settings

scanner-research/scanner-kube

Repository files navigation

Kubernetes support for Scanner

Files needed:

Environment variables needed:

  • AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID (see GCS Settings > Interoperability)

First, set up your local Docker containers:

python cluster.py build
docker-compose build
docker-compose up -d

After this, all commands (except python cluster.py build) will run a local Docker container, which you can enter by doing ./run.sh.

Start a Kubernetes cluster:

python cluster.py create

Run an example computation on the cluster:

python client.py

Commands

Update existing containers:

kubectl delete deploy --all
python cluster.py create

Resize the cluster (e.g. to 5 workers):

python cluster.py resize 5

Delete the Kubernetes cluster:

python cluster.py delete

Dashboard

First, if your local Docker container is not on your laptop, you'll need to setup an SSH tunnel:

ssh -L 8001:localhost:8001 <your server>

Then visit http://localhost:8001/ui.

Note: this is broken until I can figure out how to fix the permissions issue changed in k8s 1.8 (see here and here).

About

Support for using Scanner with Kubernetes and Google Container Engine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published