Download up to 10 million times the IDEA plug-in, K8s one-click deployment to find out?

Author | Jingle Bells

REVIEW : involve the development of technical personnel, is not open around forever deploy applications to the appropriate server, this article will explain to you: For container services ACK, how to achieve true "one-click deployment" to improve the development and deployment of efficiency, in the K8s We do use the quick step.

With the continuous development of the Internet era, developers may face this dilemma: In order to solve the problem, while trying to improve the development efficiency developed by the "innovation", it seems to undermine the importance of them in the company, or even replace their original position .

For example, native in the cloud era, some companies prefer to resolve K8s operation and maintenance, flexibility issues, rather than the formation of a need to spend a lot of money to hire, manage funds R & D team.

For K8s, its value lies not only help companies reduce operating costs, but also can bring flexibility, agility, capacity portable.

But for developers, our values ​​should not merely be able to solve the same problem with K8s, but escape from the dilemma, thinking about how to be more flexible, more efficient use K8s these "can work for you" thing to upgrade their skill sets.

What is the ACK container service

ACK container service is based on a native K8s be adapted and enhanced to simplify set-up and expansion of clusters, etc., to provide high-performance scalable container application management capabilities to support full lifecycle management of enterprise-class container applications, Ali cloud virtualization consolidation , storage, networking and security capabilities, to build the best cloud container application runtime environment.

The core functions:

  • Cluster Management : Flexible area network environment and select, according to their needs, choose a different area to create and delete clusters;

  • Server hosting a variety of ways : to support authorized container service to create a cloud server to the specified cluster support will add purchased cloud server to the specified cluster;

  • One-stop container lifecycle management : including network, storage, logging, monitoring, scheduling, routing, authority;

  • Flexible scheduling expansion strategy, easily open up the upstream and downstream delivery processes : service level of affinity policy support and scale, cross AZ high availability and disaster recovery, clustering and application management OpenAPI, easy docking continuous integration and deployment of proprietary systems.

How to achieve "one-click deployment" container service to ACK

Improve the efficiency of development and deployment There are many ways today to share with you is a local IDE plug -  Cloud Toolkit , developers said to be one of the most used plug-ins.

It is not only able to code development to final deployment of this whole process automation, but also can be deployed to any server & cloud (ECS, EDAS, K8s and applets clouds, etc.), but also comes with many features: Arthas diagnosis, Dubbo tool, Terminal terminal, file upload and MySQL actuators, the most important point is: fREE! free! free! Many online blog, website technology, the public has a number of related evaluation, we can take a look, or try to install their own, be sure to try [deployment] a key function!

Here, how to use this plug-in, the application will be deployed on a key container services ACK.

(A) install the plug

 Click on the link to download the free plug-ins: https://www.aliyun.com/product/cloudtoolkit

(B) Configuration Plug-in Preferences

Click : the top menu Tools -> Alibaba Cloud Toolkit -> Preferences -> left list of Alibaba Cloud Toolkit -> Accounts.

The following interface, configuration Ali cloud account AK and SK, to complete the configuration preferences. (If the account is a child, then fill in the sub-account of AK and SK)

(C) setting a local mirror package Docker

Click: the top menu Tools -> Alibaba Cloud Toolkit -> Preferences -> left list of Alibaba Cloud Toolkit -> Docker.

Below, provided Docker local mirror package.

(D) to deploy applications

In Intellij IDEA, the project name, right-click on Alibaba Cloud in the menu that appears -> Deploy to CS Kubernetes, deploy window appears as follows:

Step 1: Set Image

  • In the Image tab, select the local application of Context Directory and Dockerfile (usually automatically identify and set according to your local application engineering);

  • Select the image area container service ACR, the namespace and mirror warehouse, and then click Container tab.

Description : If you have not mirrored the warehouse, in the upper right corner of the dialog box, click Create a new repository Jump to container warehouse to create a mirror image repository, please refer to the steps to create a mirror container warehouse documents.

Step Two: Set Container

  • In the Container tab, select the container services ACK Deployment (deployment), Clusters (cluster) and Namespace (namespace);

  • Select the specified Container (container).

Description : If you have not created the ACK container services Deployment, in the upper right corner of the dialog box, click Create a new Kubernetes deployment, container services to jump ACK Console to create Deployment, refer to the steps to create a container service ACK documentation.

The third step: the implementation of the deployment

After clicking the Run button to complete the local application deployment container service to the ACK.

How to achieve "one-click deployment" to the host, the development and deployment speed 8 times!

This plug-in can deploy applications to the six kinds of servers, namely:

  • Host (any server)
  • ECS
  • CS K8s
  • EDAS(包括 EDAS for ECS Application & EDAS for K8s Application)
  • Mini Program (applet cloud)
  • SAE

Here, I will explain in detail, how to apply one-click deployment to the host.

The first step: adding servers

  • Click : top menu Tools -> Alibaba Cloud -> Alibaba Cloud View -> Host, open view of the machine interface as follows:

  • Click : the upper right corner Add Host button, add machine interface, as shown below, set the relevant configuration.

The second step: the implementation of the deployment

In IntelliJ IDEA, a right-project name, click on the menu that appears Alibaba Cloud -> Deploy to Host ..., following the deployment window, set the parameters of the deployment will appear, then click Deploy, you can perform the initial deployment.

Deployment parameters:

  • File Deploy : deployment file contains two ways;

  • Build Maven : If the current project uses Maven to build, you can directly build and deploy using Cloud Toolkit;

  • File the Upload : If the current project does not adopt Maven build, or local file already exists packaged deployment, you can directly select and upload local deployment files;

  • Deploy Host Target : select Tag from the drop down list and then select the server to be deployed;

  • The Location the Deploy : Enter the deployment path on ECS, such as / root / tomcat / webapps;

  • Commond : Enter the command to start the application, such as sh /root/restart.sh. Said after the completion of the deployment of the application package, the command to be executed - for a Java program, usually a Tomcat start command.

Finally, I hope today recommended plug-in can really help you improve the efficiency of development and deployment, improve the ability to use tools, we can try to install it, have any questions you can join the community to ask questions.

Welcome to Cloud Toolkit exchange group

"Alibaba Cloud native micro-channel public number (ID: Alicloudnative) focus on micro service, Serverless, container, Service Mesh and other technical fields, focusing popular technology trends in cloud native, cloud native large-scale landing practice, do most understand cloud native developers technology public number. "

More detailed information can be concerned about , "Alibaba Cloud native" .

Guess you like

Origin www.cnblogs.com/alisystemsoftware/p/11765048.html