{"id":15780299,"url":"https://github.com/ulisesgascon/raspi-cluster","last_synced_at":"2026-01-08T17:13:04.349Z","repository":{"id":72138431,"uuid":"327247425","full_name":"UlisesGascon/raspi-cluster","owner":"UlisesGascon","description":"Let's have some fun with a Raspi Cluster","archived":false,"fork":false,"pushed_at":"2021-12-09T20:03:46.000Z","size":881,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T20:02:25.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UlisesGascon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-06T08:26:47.000Z","updated_at":"2023-05-28T22:14:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"43aa1d94-4a1a-4ccf-af3a-15d5586c1d65","html_url":"https://github.com/UlisesGascon/raspi-cluster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlisesGascon%2Fraspi-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlisesGascon%2Fraspi-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlisesGascon%2Fraspi-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlisesGascon%2Fraspi-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UlisesGascon","download_url":"https://codeload.github.com/UlisesGascon/raspi-cluster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246498415,"owners_count":20787310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T18:41:11.363Z","updated_at":"2026-01-08T17:12:59.329Z","avatar_url":"https://github.com/UlisesGascon.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# raspi-cluster\nLet's have some fun with a Raspi Cluster\n\n![4 raspberry pi in a cluster with a battery module and a router. All connected together](assets/all_together.jpg)\n\n## About the project\n\n### Main objectives\n- Build a physical raspi cluster with different raspi versions\n- Setup the Network (allowing wifi connection)\n- Provision the system using Ansible\n- Deploy Kubernetes (K3s) in the cluster\n\n## Hardware\n\n## Provision\n### Router\n1. Ensure that all the raspis in the cluster have their own fix IP Address.\n2. Ensure that the device names are well defined following a pattern like `raspi-cluster-lead-xx` or `raspi-cluster-worker-xx`\n3. Make a file with the IP, Signature and name of all the raspis.\n\n![each raspi is connected in a specific IP. Show the Network MAP](assets/network_setup.png)\n\n\n### Connection\n1. Use VSCode or other tool to connect to the devices using SSH to see that is working fine in the expected IP (defualt user: `pi` and pass: `raspberry`)\n2. Copy your host machine public ssh key to each raspberry in other to have a secure connection. [Instructions](https://www.raspberrypi.org/documentation/remote-access/ssh/passwordless.md)\n3. Check that the connection works using your key. As well don't forget to remove [the password access option](https://stackoverflow.com/a/20898942) and reboot the ssh service in the raspi `service ssh restart`. Great [script](https://stackoverflow.com/a/29020099) to automate the process\n\n\n\n#### Enviromantal Basics\n\n1. Please install [Ansible in your host machine](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html). Note: for MacOS i used brew `brew install ansible`\n\n1. We need to install node, nvm, npm, python3 in all the raspis. We will use an Ansible playbook for that `ansible/basics.yml`. Please add your raspis IPs in the `ansible/inventory.ini` file\n\n```bash\nansible-playbook -i inventory.ini basics.yml\n```\n\n2. Connect to all raspis using VSCode or another ssh tool and check that all the installations were made correct.\n\nSome commands to run:\n\n```\npython --version\npython3 --version\nnpm --version\nnvm --version\nnode --version\n```\n\n![each raspi is connected in different vscode instances with some commands output](assets/ansible_basics.png)\n\n## Media and more\n\n### Twitter\n- [Initial kickoff](https://twitter.com/kom_256/status/1346485230782312450)\n\n## Resources to learn more\n\n- [Playlist: Turing Pi Cluster by Jeff Geerling](https://www.youtube.com/playlist?list=PL2_OBreMn7Frk57NLmLheAaSSpJLLL90G)\n- [Run Kubernetes on your Raspberry Pi cluster with k3s by Will Ho](https://ikarus.sg/kubernetes-with-k3s/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulisesgascon%2Fraspi-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulisesgascon%2Fraspi-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulisesgascon%2Fraspi-cluster/lists"}