diff --git a/README.md b/README.md index a8245d2..00a0abd 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ boinc-on-k8 =========== -# What: +What: Donate extra cpu cycles to charity with Kubernetes, Docker and boinc. -# tldr: +tldr: kubectl create -f boince-rc.yml kubectl scale rc boinc-workers --replicas=3 -#BackGround: +Background: Boinc is a program that is used to donate cpu cycles for charitable purposes. Boinc is put into a Docker container, we deploy X copies of these containers to a Kubernetes cluster using Kubernetes' replication controller construct. The key files are the docker container that wraps up boinc and the bonic-rc.yml file that deploys some number of workers to a kubernetes cluster. -# How to use this: + How to use this: 1) Make sure you have a kubernetes cluster somewhere 2) create an account at www.worldcommunitygrid.org and grab the and create yourself an acocunt. @@ -23,25 +23,15 @@ Boinc is a program that is used to donate cpu cycles for charitable purposes. Bo 5) Change the number of boinc workers to some specific number (in this case, 3 workers) -- > kubectl scale rc boinc-workers --replicas=3 -# How to stop the boinc workers: +How to stop the boinc workers: - 1) kubectl stop -f boinc-rc.yml + 1) run this command: + -- > kubectl stop -f boinc-rc.yml -Some additional Usage examples: -============ -# Start up 1 worker on your kubernetes cluster -kubectl create -f boince-rc.yml -# Change the number of boinc workers to some value (in this case, 3 workers) -kubectl scale rc boinc-workers --replicas=3 - -# Stop all boinc workers -kubectl stop -f boinc-rc.yml - - -# Notes: +Notes: I forked ozzyjohnson's work to get boinc running in docker and added some kubernetes files on top of his work. If you want to use boinc straight in docker, go see ozzyjohnson/docker-boinc diff --git a/boinc-rc.yml b/boinc-rc.yml index 70d7f95..2e69231 100644 --- a/boinc-rc.yml +++ b/boinc-rc.yml @@ -35,5 +35,6 @@ spec: containers: - image: ckleban/boinc-on-k8 name: boinc-workers + #args: ["-attach_project", , ] args: ["-attach_project", "www.worldcommunitygrid.org", "828bcd757c0d4eb55ef2cd560a306db0"] - +