Enterprise Distributed Application Service (EDAS) allows you to create a PHP application from source code and deploy the application in a Container Service for Kubernetes (ACK) cluster or a serverless Kubernetes cluster. EDAS provides diverse features, such as application scaling, monitoring and alerting, load balancing, and throttling and degradation, for you to manage applications. The procedure for deploying a PHP application in an ACK cluster is similar to that for deploying a PHP application in a serverless Kubernetes cluster. This topic shows you how to build a PHP application from source code and deploy the application in an ACK cluster.
Prerequisites
- Both EDAS and ACK are activated for your Alibaba Cloud account. For more information, see the following topics:
- A microservice namespace is created. For more information, see the "Create a microservice namespace" section of the Manage microservice namespaces in the EDAS console topic.
- Role authorization is complete in ACK. For more information, see ACK default roles.
Step 1: Create an ACK cluster
Log on to the ACK console and create an ACK cluster. For more information, see Create a managed Kubernetes cluster.
To create a serverless Kubernetes cluster, set the VPC parameter to Create VPC and set the Service Discovery parameter to PrivateZone. This allows the serverless Kubernetes cluster to use Alibaba Cloud Service Mesh after the cluster is imported to EDAS. If you set the VPC parameter to Select Existing VPC, check whether the cluster contains virtual private cloud (VPC) and vSwitch resources after you create the cluster.

Step 2: Import the ACK cluster to the EDAS console
By default, the ack-ahas-sentinel-pilot, ack-arms-pilot, and ack-arms-prometheus components are installed when you import an ACK cluster to EDAS in the EDAS console. The ack-ahas-sentinel-pilot component is an application protection component for throttling and degradation. The ack-arms-pilot component is an Application Real-Time Monitoring Service (ARMS) monitoring component. The ack-arms-prometheus component is a Prometheus monitoring component.
Step 3: Deploy your PHP application to the ACK cluster
FAQ
How do I view the error log that tracks image-based application deployment?If you fail to use an image to deploy an application, you can view the error log on the Change List page. For more information, see View application changes.
What to do next
After the application is deployed, you can add an Internet-facing Server Load Balancer (SLB) instance to allow access to the application over the Internet. You can also add an internal-facing SLB instance so that all the nodes in the same VPC can access the application by using this internal-facing SLB instance. For more information, see Bind SLB instances or Reuse an SLB instance.