Go to file
2022-08-15 16:17:08 +00:00
agent Security updates 2022-08-15 09:48:56 -06:00
docker fix 2021-08-25 08:44:55 -06:00
example fix 2021-08-25 08:44:55 -06:00
images Upload files to 'images' 2021-10-29 01:35:25 +00:00
server Security updates 2022-08-15 09:48:56 -06:00
ssl fix 2021-08-25 08:44:55 -06:00
web API FIX 2022-08-15 10:02:32 -06:00
.gitignore Security updates 2022-08-15 09:48:56 -06:00
config-example.json fix 2021-08-25 08:44:55 -06:00
docker-compose-multi-node.yml fix 2021-08-25 08:44:55 -06:00
docker-compose-multinode.config.json fix 2021-08-25 08:44:55 -06:00
docker-compose-rpi.yml fix 2021-08-25 08:44:55 -06:00
docker-compose.config.json fix 2021-08-25 08:44:55 -06:00
docker-compose.yml fix 2021-08-25 08:44:55 -06:00
grafana-dashboard-7.x.json fix 2021-08-25 08:44:55 -06:00
grafana-dashboard.json fix 2021-08-25 08:44:55 -06:00
kibana-dashboards-7x.ndjson fix 2021-08-25 08:44:55 -06:00
kibana-graphs.json fix 2021-08-25 08:44:55 -06:00
launch.json fix 2021-08-25 08:44:55 -06:00
LICENSE.txt fix 2021-08-25 08:44:55 -06:00
package-lock.json Security updates 2022-08-15 09:48:56 -06:00
package.json Security updates 2022-08-15 09:48:56 -06:00
picluster-pm2.config-example.json fix 2021-08-25 08:44:55 -06:00
picluster-pm2.config.json fix 2021-08-25 08:44:55 -06:00
pictl fix 2021-08-25 08:44:55 -06:00
README.md Update 'README.md' 2022-07-20 17:37:02 +00:00
RELEASE_NOTES.txt SystemD Support 2022-08-15 09:42:56 -06:00

PiCluster

Pic

PiCluster is a simple way to manage Docker containers on multiple hosts. I created this because I found Docker Swarm not that good and Kubernetes was too difficult to install currently on ARM. PiCluster will only build and run images from Dockerfile's on the host specified in the config file. This software will work on regular x86 hardware also and is not tied to ARM.

License: GPL v3

Pic

Features

  • Move containers to different hosts in the cluster
  • Container Load Balancer
  • Run commands in parallel across Nodes
  • Heartbeat for services
  • Easily build and orchestrate Docker images across nodes
  • Web interface
  • CLI interface
  • Monitor host metrics (Disk, CPU, Memory)
  • HTTP interface
  • Virtual Networking via Swarm
  • Virtual IP Manager
  • Rsyslog Analytics
  • Built-in web terminal to easily run commands on nodes
  • Integrate the Kibana dashboard into PiCluster
  • Integrates with Elasticsearch to store the PiCluster logs and host monitoring metrics .
  • Automatic container failover to different nodes
  • Pull container images from a registry
  • Upload Dockerfile archives to the entire cluster
  • Functions-as-a-Service (FaaS)

Prerequisites

  • Docker
  • Node.js
  • OpenSSL
  • pq
  • git
  • curl

Ubuntu

apt-get install openssl git node docker pq curl

Arch Linux

pacman -S openssl git node docker pq curl

Cloning this Repository

git clone https://git.rage.lol/verita84/picluster.git picluster

To clone the developer branch (not recommended unless you know what you're doing):

git clone -b dev https://git.rage.lol/verita84/picluster.git picluster

Config file reference

See Wiki

Try PiCluster in Docker

We included a compose file to evaluate PiCluster easily on your laptop. Simply Install Docker on your laptop and do the following:

cd picluster
docker-compose up -d

Finally, in your web browser go to http://127.0.0.1:3003

Installation

See Wiki

Container Load Balancer

See Wiki

Upgrading

See Wiki

Functions-as-a-Service (FAAS)

See Wiki

Configuring and using the command-line client "pictl"

See Wiki

SSL/TLS

See Wiki

Using pm2 to init PiCluster on systemd

See Wiki

Automatic Container failover to other hosts

See Wiki

Authors and Contributions

Images

This work, "Raspy Whale", is a derivative of "raspberry" by Chanut is Industries from the Noun Project used under CC BY, "Sperm Whale" by Oksana Latysheva from the Noun Project used under CC BY, and "Sperm Whale" by Oksana Latysheva from the Noun Project used under CC BY. "Raspy Whale" is licensed under CC BY by Jordan Sinn.