This topic describes how to deploy microservice-oriented applications in Enterprise Distributed Application Service (EDAS). EDAS provides microservice-oriented application demos that use the following frameworks: Spring Cloud, Dubbo, and High-speed Service Framework (HSF). You can deploy application demos to the specified Kubernetes clusters. This topic provides an example on how to deploy a microservice-oriented application in a Kubernetes cluster.
Prerequisites
- EDAS is activated. For more information, see Activate EDAS.
- A Container Service for Kubernetes (ACK) cluster is created and added to EDAS. This
operation is required because you cannot create a Kubernetes cluster in EDAS. For
more information, see Use the EDAS console to manage Kubernetes clusters.
Note To experience the deployment practice, we recommend that you add your Kubernetes cluster to the default microservice namespace of the region that you use. If you want to isolate resources and services in EDAS, you can add the Kubernetes cluster that you created to a specified microservice namespace based on your requirements.
- An application image is created. For more information, see Create an application image.
- The RAM user that you use is authorized by the relevant Alibaba Cloud account to use the images in a repository of Container Registry Enterprise Edition to deploy applications. For more information, see Configure policies for RAM users to access Container Registry.
Background information
- Kubernetes cluster: In this practice, you must use a Kubernetes cluster that is deployed in a specified region and microservice namespace.
- Application demo: EDAS provides the demo image of a sample microservice-oriented application
in the EDAS console. The demo contains a server-side application (service provider)
and a client-side application (service consumer). This demo shows how to perform simple
service calls. EDAS also provides WAR and JAR packages of microservice-oriented application
demos that use the Spring Cloud, Dubbo, and HSF frameworks. For more information about
how to deploy applications by using JAR or WAR packages, see Use a JAR or WAR package to deploy an application in an ACK cluster and Use a JAR package or a WAR package to deploy an application in a serverless Kubernetes cluster.
In this example, an application demo that uses the demo image is deployed. For more information about the microservice-oriented application demos, see alibabacloud-microservice-demo.
- For information about how to implement features of an application with microservices, see Overview.
Deploy the demo image of a sample microservice-oriented application
The demo image of a microservice-oriented application contains a server-side application (service provider) and a client-side application (service consumer). This topic describes how to deploy the service provider. After you deploy the service provider, follow the instruction in this section to deploy the service consumer.
Verify the result
The service consumer can be a web service consumer. After the server-side application and the client-side application are deployed, you can access the web page of the client-side application to verify the result.