This project provides an Ansible playbook to set up a Raspberry Pi Kubernetes cluster using k3s, specifically designed to run the Dragon Ball Z game using EmulatorJS.
- Use Raspberry Pi Imager to prepare your microSD cards.
- Configure parameters: choose Raspberry Pi Zero 2 W, select Raspberry Pi OS Lite 64-bit, and set up network settings (enable SSH and enter network credentials).
- Connect to the Raspberry Pi devices via SSH:
ssh [email protected],ssh [email protected],ssh [email protected]to make sure connectivity
- Create an Ubuntu VM using Hyper-V.
- In Hyper-V Manager, go to Virtual Switch Manager and create a new External Network switch. Connect it to your physical network adapter.
- Right-click the VM, select Settings, go to Network Adapter, and change the connection to the newly created external switch.
- Find the VM's IP address with
ip addr show. - Check the firewall status with
sudo ufw status. If the firewall is active, allow SSH access:sudo ufw allow ssh && sudo ufw reload. - For ease of access, use SSH to connect to the VM. If SSH is disabled, start it with:
sudo systemctl start ssh. Enable SSH to start on boot using:sudo systemctl enable ssh.
- Update and upgrade the system:
sudo apt update && sudo apt upgrade -y - Install essential packages such as curl, git, and Python 3 pip:
sudo apt install curl git python3-pip -y - Install Ansible:
sudo apt-add-repository --yes --update ppa:ansible/ansible && sudo apt install ansible -y - Install Docker by following the official Docker installation guide: https://docs.docker.com/engine/install/ubuntu/.
- Customize the
hosts.yamlfile to point to your Raspberry Pi devices. - Run the Ansible playbook using:
./run.sh
Once the Ansible playbook completes successfully, SSH into the VM and follow these steps:
- Verify that all nodes are registered correctly:
kubectl get nodes -o wide - Navigate to the EmulatorJS deployment folder:
cd k3s_emulatorjs - Deploy the EmulatorJS application:
kubectl apply -f .
- Download the fileset from the main screen.
- Load the game file : "2 Games in 1! Dragon Ball Z - Buu's Fury + Dragon Ball GT - Transformation.zip".
- Enjoy playing the game!
