[Maybe a feature] Help needed in writing Makefile for k3s package for Omnia

Hi,

I recently started to work on k3s (Kubernetes engine) package for Turris Omnia (for now only Omnia) and I am failing to write proper Makefile.

If someone more experienced might taking a look, I would be glad. Thx

Here is repo:

For now ignore README.md and focus on Makefile.

I used official binaries but struggling to make an ipk package.

I was taking inspiration from:
https://gitlab.nic.cz/turris/os/packages/-/raw/master/utils/christmas/Makefile
And OpenWRT Docs.

The plan is to host that as additional repo on gh-pages and then build for Mox and Turris1.x as well. And add separate services to server and node so it might be useful if you have more than one device. Then maybe config file not uci globals. Who knows?

@Pepe would you be perhaps kind enough to give some hints?

Here is last raw log:
https://productionresultssa14.blob.core.windows.net/actions-results/374618d9-3779-44a5-8dd1-b142f5692c89/workflow-job-run-26880fbf-6148-55bf-7dee-e0b48140d7a1/logs/job/job-logs.txt?rsct=text%2Fplain&se=2024-03-29T14%3A04%3A31Z&sig=ja52hH1i2cAxaOzd3ExmxyIxlUEuyE%2BwX377anQoPZs%3D&sp=r&spr=https&sr=b&st=2024-03-29T13%3A54%3A26Z&sv=2021-12-02

In general I have no clue what I am doing if something😉

I’ve managed to setup CI/CD building that on each push and that seems to work at least

Its not like the binary itself works without special kernel or smtn.

But just imagine how cool is that to run Kubernetes cluster on your Turris device

I managed to package it:

If someone wants to try it on Omnia feel free but you would need special kernel for it to work

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.