Technology Sharing

Summary of practical experience in adapting domestic information technology to K8S cluster applications

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

1. Xinchuang Adaptation Background

The localization of ICT is proposed in the context of globalization and rapid technological development. With the rapid development of information technology, the domestic demand for technological products and services is growing. At the same time, the turbulence of the international situation and the changes in the trade environment have also highlighted the importance of independent control and localization. In addition, the increasing emphasis of domestic policies on digital economy and technological innovation has also provided strong support for the localization of ICT.

The significance of localization of ICT is to promote the development of domestic science and technology industry, improve independent innovation capability, ensure national information security, and promote economic growth and transformation and upgrading. Therefore, many of our products and projects have the need for adaptation of domestic ICT.

2. Xinchuang operating system

The choice of domestic trusted operating system, if you want to choose an open source operating system, of course, openeluer or OpenAnolis. Of course, sometimes there are customer requirements or for better security, you will choose Kirin or Tongxin UOS. Here we choose Galaxy Kirin V10.

3. Adaptation steps

Now sealos installation of k8s is one of the most popular and stable choices. This project x86 is sealos installation.

So our arm adaptation steps are as follows:

1. sealos adaptation

Releases · labring/sealos · GitHub

2.k8s adaptation

sealos pull labring/kubernetes:v1.24.17
sealos pull labring/calico:3.24.6
sealos pull labring/helm:v3.12.3
sealos pull labring/openebs:v3.7.0

3. There are middleware kafka, pg, es, etc., looking for the same version of arm image

https://hub.docker.com/Search, currently it is not accessible in China, find a way yourself

4. Self-developed Java application, replaced the Dockerfile base image with arm, and re-imaged

The basic image is found at https://hub.docker.com/. It is not accessible in China at present. You can find a way yourself.

5. Self-developed python application, replaced the dockerfile base image with arm, and re-imaged

The basic image is found at https://hub.docker.com/. It is not accessible in China at present. You can find a way yourself.

6. Self-developed C language application, replaced the Dockerfile base image with arm, and re-imaged

The basic image is found at https://hub.docker.com/. It is not accessible in China at present. You can find a way yourself.

4. Adapt to different platform images

refer to:How to build multi-platform images with a docker machine - CSDN Blog