After you host an application from a Container Service for Kubernetes (K8s) cluster in EDAS, you can manage its lifecycle in the EDAS console. This includes deploying new versions, redeploying historical versions, and scaling the application. You can also perform fine-grained lifecycle management by editing the application's YAML file.
Access the application overview page
-
Log on to the EDAS console. In the left-side navigation pane, choose . In the top navigation bar, select a region. In the upper part of the Applications page, select a microservices namespace from the Microservices Namespace drop-down list. Select Kubernetes Cluster from the Cluster Type drop-down list. Then, click the name of the application that you want to manage.
You can manage the application lifecycle on the Application Overview page.
Deploy a new application version
In the upper-right corner of the Overview page, choose , and then select your preferred deployment method.
After the deployment starts, you can view the change records on the Change Records page.
Deploy a historical application version
In the upper-right corner of the Overview page, choose . In the Deploy Historical Version dialog box, select the target historical version and click Deploy This Version.
Roll back an application during deployment
While an application is deploying, click View Details at the top of the Overview page. On the Change Records page, click Roll Back in the upper-right corner. In the Confirm dialog box, click Confirm.
Start or stop an application
When an application is running, you can stop it based on your business needs. In the upper-right corner of the Overview page, click Stop. Stopping an application scales the number of pods down to zero. You can stop an application only if it has at least one running pod.
When an application is stopped, any dependent services such as SLB and VPC remain active and continue to incur charges.
When an application is stopped, you can start it based on your business needs. In the upper-right corner of the Overview page, click Start. In the Start Application dialog box, set the Number of Application Pods, and then click Confirm.
Restart an application
To restart a running application, click Restart Application in the upper-right corner of the Overview page. The application restarts using a rolling deployment, where new pods start before old pods stop.
Scale applications
In the upper-right corner of the Overview page, choose or . For more information, see Manual scaling or Auto scaling.
View application configuration details
In the upper-right corner of the Overview page, click Configuration Details. In the panel that appears, you can view advanced configuration details such as workload (Deployment), container groups (pods), and startup commands.
Delete an application
In the upper-right corner of the Overview page, click Delete. In the Confirm dialog box, click Confirm.
Edit YAML
On the Overview page, go to the Basic Information section. To the right of YAML, click Edit. In the Edit YAML dialog box, you can edit the application's YAML file to perform fine-grained lifecycle management. After you edit the file, click Save.