cnrancher / autok3s

Run K3s Everywhere
https://www.suse.com
Apache License 2.0
741 stars 76 forks source link

[Feature Request] Support cpu arch for LoongArch #642

Open lutianyang01 opened 9 months ago

lutianyang01 commented 9 months ago

Recently, I builded autok3s in the loongarch64 architecture. I found that the binary file of the k3s repository does not support the loongarch64. I modified the source code and used the Local HTTP service to get the complete installation package of k3s locally. The problem is that my local code cannot be updated with the community, so I hope to provide better offline installation function and support the loongarch64. Thanks.

orangedeng commented 9 months ago

I recommend you submit an issue in k3s repo. Besides, we also don't have loongarch64 infrastructure to test it. It is better that someone who can access to that kind of machine can contribute to k3s.

lutianyang01 commented 9 months ago

Thank you for replying to my issue.

The difference between k3s and autok3s is that the source code of k3s can be directly builded on Loongarch64 and its functionality can be used normally, but autok3s cannot. So I hope to add options for customizing CPU architecture and downloading repositories in Autok3s, similar to CDH support for using Apache2 web server to download cloudera-packages locally.

At 2023-11-07 11:03:37, "Yuxing Deng" @.***> wrote:

I recommend you submit an issue on k3s repo. Besides, we also don't have loongarch64 infrastructure to test it. It is better that someone who can access to that kind of machine can contribute to k3s.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

orangedeng commented 9 months ago

Thanks for reply and supporting autok3s and k3s. The autok3s project is built on the k3s project. Building customized k3s artifacts is not our goal. We did the PoC before that building k3s on loongarch64 and it succeed. But still, it is not a official support release of k3s. In this case, only the released k3s offline artifacts are supported for offline installation. The verified download source is from Github and Aliyun OSS site maintained by ourselves.

For your use case, I suggest that you can fork your own autok3s project to implement your feature request. I think the only changes you need is to add loongarch64 to the supported arch list. After that you can import your own k3s offline package.