Projects/Kubernetes on e-waste: verschil tussen versies

Uit Hackerspace Bitlair
 
(4 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 13: Regel 13:


Largely based on https://blog.denv.it/posts/pmos-k3s-cluster/
Largely based on https://blog.denv.it/posts/pmos-k3s-cluster/
== Software ==
PostmarketOS (pmOS) is the project that makes it possible to run an the similarly named Alpine Linux-based distro on old smartphones. What is interesting is that the goal of this project is to run mainline Linux as opposed to the heavily patched ancient kernels that ship with Android.


== Hardware ==
== Hardware ==
I gathered a couple of old Android phones to test this scheme with.
I followed the pmOS wiki to cross-reference support for devices that were advertised on the local 2nd hand market.
 
Feature and peripheral support differs per device, but since I only need these phones to do computing and networking I can permit myself some liberty in device selection.


=== OnePlus 6 ===
=== OnePlus 6 ===
[[File:Pmos-oneplus-enchilada.png|right|thumb|200px]]
* https://wiki.postmarketos.org/wiki/OnePlus_6_(oneplus-enchilada)
* https://wiki.postmarketos.org/wiki/OnePlus_6_(oneplus-enchilada)
I got this one for € 50. Flashing was trivial and it seems to run well. The standard PostmarketOS kernel lacks some kconfig flags to support docker, so I had to compile a custom kernel.
I got this one for € 50. Flashing was trivial and it seems to run well. The standard PostmarketOS kernel lacks some kconfig flags to support docker, so I had to compile a custom kernel.
Regel 27: Regel 33:


=== OnePlus 8 Pro ===
=== OnePlus 8 Pro ===
[[File:Pmos-oneplus-instantnoodlep.png|right|thumb|200px]]
* https://wiki.postmarketos.org/wiki/OnePlus_8_Pro_(oneplus-instantnoodlep)
* https://wiki.postmarketos.org/wiki/OnePlus_8_Pro_(oneplus-instantnoodlep)
Has some cracks in the screen and case which reduced the price to a mere € 40. Backing up the stock-ROM and flashing to pmOS was orders of magnitude more work than the other devices.
Has some cracks in the screen and case which reduced the price to a mere € 40. Backing up the stock-ROM and flashing to pmOS was orders of magnitude more work than the other devices.


== Upstream? ==
== Upstream? ==
 
* '''kconfig''' is missing some flags required by docker/k3s in the default images
=== kconfig ===
** https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4335
It would be handy to enable the kconfig options for docker/k3s by default. TODO: Ask the PostmarketOS people whether this is desirable.
** https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8002
 
* '''Containerd''' fails to start because of a misconfigured path. Would be handy to fix upstream in either Alpine or PostmarketOS, whichever ships this mistake
=== containerd ===
Containerd fails to start because of a misconfigured path. Would be handy to fix upstream in either Alpine or PostmarketOS, whichever ships this mistake.
<pre>
<pre>
Feb 07 19:06:26 fairphone-fp3 (ntainerd)[2010]: containerd.service: Unable to locate executable '/usr/local/bin/containerd': No such file or directory
Feb 07 19:06:26 fairphone-fp3 (ntainerd)[2010]: containerd.service: Unable to locate executable '/usr/local/bin/containerd': No such file or directory
Feb 07 19:06:26 fairphone-fp3 (ntainerd)[2010]: containerd.service: Failed at step EXEC spawning /usr/local/bin/containerd: No such file or directory
Feb 07 19:06:26 fairphone-fp3 (ntainerd)[2010]: containerd.service: Failed at step EXEC spawning /usr/local/bin/containerd: No such file or directory
</pre>
</pre>

Huidige versie van 15 feb 2026 16:41

Project: Kubernetes on e-waste
Beschrijving Kubernetes on e-waste
Start 2026-01-29
Contact Polyfloyd
Status Beta

Here in Europe, people are looking for ways to ditch US-tech. This includes family and friends of mine. And there are plenty of alternatives such as NextCloud and Immich. Thing is, software nowadays is run as a service and the typical friends and family should not be expected to know how to administrate a Linux server.

But social circles do contain the occasional Linux nerd such as myself. However, I can not provide all of the hardware. Especially since RAM has become unaffordable thanks to our good friend Sam Altman. But what if I do not have to? What if people would scavenge their drawers for their old smartphones and hand it to me to provide the hardware to host their services on?

Largely based on https://blog.denv.it/posts/pmos-k3s-cluster/

Software

PostmarketOS (pmOS) is the project that makes it possible to run an the similarly named Alpine Linux-based distro on old smartphones. What is interesting is that the goal of this project is to run mainline Linux as opposed to the heavily patched ancient kernels that ship with Android.

Hardware

I followed the pmOS wiki to cross-reference support for devices that were advertised on the local 2nd hand market.

Feature and peripheral support differs per device, but since I only need these phones to do computing and networking I can permit myself some liberty in device selection.

OnePlus 6

I got this one for € 50. Flashing was trivial and it seems to run well. The standard PostmarketOS kernel lacks some kconfig flags to support docker, so I had to compile a custom kernel.

Fairphone 3

This phone was free because it was completely broken. On a hunch, I attempted to reflow the SoC with the hot-airgun which made it come back to life. Flashing PostmarketOS was also super easy. Also needed kconfig tweaking to get Docker to work.

OnePlus 8 Pro

Has some cracks in the screen and case which reduced the price to a mere € 40. Backing up the stock-ROM and flashing to pmOS was orders of magnitude more work than the other devices.

Upstream?

Feb 07 19:06:26 fairphone-fp3 (ntainerd)[2010]: containerd.service: Unable to locate executable '/usr/local/bin/containerd': No such file or directory
Feb 07 19:06:26 fairphone-fp3 (ntainerd)[2010]: containerd.service: Failed at step EXEC spawning /usr/local/bin/containerd: No such file or directory