Skip to content

Commit

Permalink
yet another update to readme and boinc-rc;mL
Browse files Browse the repository at this point in the history
  • Loading branch information
ckleban committed Jul 28, 2015
1 parent 2071f00 commit 336002d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
26 changes: 8 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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

3 changes: 2 additions & 1 deletion boinc-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ spec:
containers:
- image: ckleban/boinc-on-k8
name: boinc-workers
#args: ["-attach_project", <BoincProjectServer>, <Account Key>]
args: ["-attach_project", "www.worldcommunitygrid.org", "828bcd757c0d4eb55ef2cd560a306db0"]

0 comments on commit 336002d

Please sign in to comment.