In the past six months, we have done a new project, a one-stop K8s cloud native (Cloud Native) system: Code-Galaxy. In recent years, the concept of cloud native has become very popular, including cloud vendors such as Tencent Cloud and Alibaba Cloud, large Internet companies, and a large number of start-up DevOps companies, all of which are working on cloud native products and services. However, due to the complexity of K8s itself, it is not easy to use K8s cloud native technology in a project. It requires a lot of investment in human resources and time resources, causing many enterprises to be discouraged from K8s technology. Another point, if you want to use K8s, the prerequisite is that you must first learn to use Docker. Although the popularity of Docker technology is very high, there are still many developers who have not fully mastered the use of Docker.
We developed the Code-Galaxy system to solve these problems, hiding all the technical complexity of Docker and K8s at the bottom of the platform, providing a very simple, easy-to-use, and easy-to-use system, allowing a developer without any Docker and K8s experience at all. Users can upgrade their back-end service system from traditional architecture to K8s cloud-native architecture within one day. It allows individual developers and small and medium-sized enterprises to enjoy the benefits of cloud native technology without any cost investment.
Code-Galaxy currently supports 4 programming languages: Java, Golang, PHP, and JavaScript. We also provide managed K8s clusters of Tencent Cloud and Alibaba Cloud, which can be used directly without creating a cluster yourself.
The use of the Code-Galaxy platform is as simple as the popular LAMP suite 15 years ago. Let us take the deployment of the simplest WordPress application on a K8s cluster as an example to introduce the use of the Code-Galaxy system, which can be completed in 10 minutes. Create, build, deploy, and access applications on the K8s cluster. After completing these tasks, the resolved domain name is ready for use.
First, log in to the console https://console.code-galaxy.net/ , enter the application market, and click to select the WordPress application:
Then use this template to start the app installation:
Step 1: Choose a version. In this step, all options can be defaulted. If you have resources of multiple clusters, you can install this application by selecting a cluster with available quota as shown in the screenshot. After everything is ready, click to go to the next step:
Step 2: Configure dependencies. This step is mainly to configure the dependencies required for WordPress installation/runtime. The MySQL that depends on the runtime can be directly selected for automatic application, which is very convenient; Git warehouses can also choose managed warehouses, and there is no need to manually go to other Git platforms to create new warehouses and other cumbersome steps; CloudIDE is an online development environment, which is mainly used for Git repository source code initialization and related configuration during application installation. After everything is configured, click to enter the next step:
Step 3: Other configuration. The application-related information is mainly configured here, and it can be defaulted if there are no special requirements. The service domain name is used to configure which domain name to use to access after WordPress is installed and started. It is recommended to default to a quick preview experience when using it for the first time. Click on the app install, drink a cup of tea, and the app is installed.
In about 2 minutes, the application is installed. We can follow the instructions to copy the hosts to the local hosts for local resolution, and then click the link to enter the WordPress site.
After entering the site, choose a good name for the site according to your own preferences, then set the administrator information such as username, password, email, etc., click to install WordPress, and a blog system is completely set up:
After the installation is complete, log in to the administrator account, and you can see the blog management background:
If you want other people to visit your blog, you need to parse your blog on the public network. The configuration is also very simple, first go to the application management page, enter the domain name management, and create a new rule:
After selecting the blog deployment environment and cluster, fill in the correct domain name, and then remember to select the instance below (the default instance name is default), and then resolve the domain name to the corresponding IP as shown in the figure:
Go to the corresponding cloud vendor to complete DNS resolution:
Then you can directly access the public network:
If you need to support HTTPS access, you can go to the domain name management in the operation and maintenance management, and configure HTTPS support for the domain name (the domain name certificate needs to be created in advance on the domain name certificate menu page):
So far, you can complete the access of a blog from creation to HTTPS domain name access, which is very convenient. Using CodeGalaxy to easily run WordPress on K8s can use resources more reasonably. In the case of continuous access to the WordPress management background, WordPress takes up less than 0.18 CPU cores at most, and the memory is basically stable below 143M:
In Operation and Maintenance > Cluster Management > Load Ranking, you can even directly see the real-time load of all resources in the entire cluster, which can allocate resources to applications more reasonably, improve resource utilization efficiency, and reduce unnecessary costs:
At the same time, you can also see the site access status in CodeGalaxy, and view the domain name traffic monitoring in Access > Domain Name Management, which is very convenient. You can clearly know the traffic volume, bandwidth, response delay, etc. of the domain name:
On the database side, CodeGalaxy provides a managed database out of the box, as well as a visual web platform to manage data online:
If your blog has a certain amount of traffic, you can set up resource templates to allocate more resources to WordPress; you can also allocate more bandwidth resources to the domain names you access.
Finally, you are welcome to log in to the Code-Galaxy official website https://code-galaxy.net/ to experience. Register now and we will give away 0.2 core CPU + 256M memory (Tencent Cloud or Alibaba Cloud) resources, the number is limited, while stocks last.
In addition, if you are interested in Code-Galaxy and K8s cloud native technology, you can join our WeChat communication group.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。