In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Author | jingle bells
Introduction: the technical staff involved in development can never get around deploying the application to the corresponding server. This article will explain to you: for ACK, how to achieve real "one-click deployment", improve the efficiency of development and deployment, and take a quick step in the use of K8s.
With the continuous development of the Internet era, developers may be faced with such a dilemma: the "innovation" developed in order to solve problems and improve development efficiency seems to weaken their importance in the company. or even take their place.
For example, in the cloud native era, some enterprises prefer to choose K8s to solve the problems of operation and maintenance and flexibility, rather than to set up a R & D team that costs a lot of employment funds and management funds.
For K8s, its value is that it can not only help companies reduce operation and maintenance costs, but also bring flexibility, agility and portability.
But for developers, our value is not just to be able to solve the same problems as K8s, but to jump out of the predicament and think about how to use things like K8s more flexibly and efficiently to improve your comprehensive skills.
What is CCS ACK
Cdn.xitu.io/2019/10/30/16e1b8ec5bb8f379?w=1025&h=418&f=jpeg&s=89840 ">
CCS ACK adapts and enhances based on native K8s, simplifies the construction and expansion of clusters, provides high-performance and scalable container application management capabilities, supports the lifecycle management of enterprise containerized applications, integrates Aliyun's virtualization, storage, network and security capabilities, and creates the best containerized application running environment in the cloud.
The core functions are:
Cluster management: flexible choice of region and network environment. You can choose different regions to create and delete clusters according to your own needs.
Multiple server hosting methods: support authorizing CCS to create CVMs to join the specified cluster, and adding purchased CVMs to the specified cluster
One-stop container life cycle management: including network, storage, log, monitoring, scheduling, routing, permissions
Flexible expansion of scheduling strategy to easily open upstream and downstream delivery processes: support service-level affinity strategy and scale-out, OpenAPI across AZ high availability and disaster recovery, clustering and application management, and easily interface with continuous integration and private deployment systems. How to implement "one-click deployment" to CCS ACK
There are many ways to improve the efficiency of development and deployment. What I share with you today is a native IDE plug-in-Cloud Toolkit, which is said to be one of the most used plug-ins by developers.
It not only automates the whole process of code development to final deployment, but also can be deployed to any server & cloud (ECS, EDAS, K8s, mini program cloud, etc.), and comes with many features: Arthas diagnostics, Dubbo tools, Terminal terminals, file uploads, MySQL executors, and most importantly: free! Free! Free! There are many blogs and comments on the Internet, you can refer to it, or install and try it yourself, be sure to try out the function of [one-click deployment]!
Here's how to deploy the application to CCS ACK with the help of this plug-in.
(1) install plug-ins
Click the link to download the plug-in for free: https://www.aliyun.com/product/cloudtoolkit
(2) configure plug-in preferences
Click: top menu Tools-- > Alibaba Cloud Toolkit-- > Preferences-- > Alibaba Cloud Toolkit-- > Accounts in the list on the left.
The following interface appears to configure the AK and SK of the Aliyun account to complete the preference configuration. (if it is a sub-account, fill in the AK and SK of the sub-account)
(3) set local Docker image packaging
Click: top menu Tools-> Alibaba Cloud Toolkit-- > Preferences-- > Alibaba Cloud Toolkit-- > Docker in the list on the left.
Set up local Docker image packaging as shown in the following figure.
(4) deploy applications
In Intellij IDEA, right-click the project name, click Alibaba Cloud-> Deploy to CS Kubernetes in the menu that appears, and the following deployment window appears:
Step 1: set up Image
In the Image tab, select the Context Directory and Dockerfile of the local application (usually automatically identified and set according to your local application project)
Select the region, namespace and image repository of the container image service ACR, and then click the Container tab.
Note: if you do not have an image repository, click Create a new repository in the upper right corner of the dialog box to jump to the container image repository to create an image repository. For the creation steps, please refer to the container image repository documentation.
Step 2: set up Container
On the Container tab, select Deployment (deployment), Clusters (Cluster), and Namespace (Namespace) of CCS ACK
Select the specified Container (container).
Note: if you have not created a Deployment for CCS ACK, click Create a new Kubernetes deployment in the upper right corner of the dialog box, and jump to the CCS ACK console to create a Deployment. For the creation steps, please refer to the CCS ACK documentation.
Step 3: perform deployment
After clicking the Run button, you can complete the deployment of the local application to the container service ACK.
How to achieve "one-click deployment" to host, development and deployment speed up 8 times!
This plug-in can deploy applications to six servers, namely:
Host (any server) ECSCS K8sEDAS (including EDAS for ECS Application & EDAS for K8s Application) Mini Program (Mini Program Cloud) SAE
The following is a detailed explanation of how to deploy the application to host with one click.
Step 1: add a server, click: top menu Tools-> Alibaba Cloud-- > Alibaba Cloud View-- > Host, and open the machine view interface, as shown below:
Click: Add Host button in the upper right corner, and the add machine interface appears, as shown in the following figure, to set the relevant configuration.
Step 2: perform deployment
In IntelliJ IDEA, right-click the project project name, click Alibaba Cloud-> Deploy to Host..., in the menu that appears, the following deployment window appears, set the deployment parameters, and then click Deploy to perform the initial deployment.
Deployment parameters description:
Deploy File: deployment files contain two ways
Maven Build: if the current project is built with Maven, you can build and deploy it directly using Cloud Toolkit
Upload File: if the current project is not built with Maven, or if a packaged deployment file already exists locally, you can select and upload the local deployment file directly
Target Deploy host: select Tag from the drop-down list, and then select the server to deploy
Deploy Location: enter the deployment path on ECS, such as / root/tomcat/webapps
Commond: enter the application startup command, such as sh / root/restart.sh. Indicates the command that needs to be executed after the deployment of the application package is completed-- for Java programs, it is usually a Tomcat startup command.
Finally, I hope that the plug-ins recommended today can really help you improve the efficiency of development and deployment and improve your ability to use the tools. you can install and try them out, and if you have any questions, you can join the community to ask questions.
Welcome to the Cloud Toolkit communication group.
"Alibaba Yun × × icloudnative × × erverless, containers, Service Mesh and other technical fields, focusing on cloud native popular technology trends, cloud native large-scale landing practice, to do the best understanding of cloud native development × ×
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.