Application service details

更新时间:
复制 MD 格式

After you create an application service, you can view its details. These details include basic information and configurations, such as pod details, service information, and log configurations. The application service details page also provides a feature menu for quick updates, such as image replacement and scaling.

View application service details

After you create an application service, you can view its details.

Procedure

  1. Log on to the Container Application Service console. In the navigation pane on the left, click Application Publishing > Application Service.

  2. On the Application Service list page, click the name of the application service to open the Application Service Details page.

  3. View the configuration information of the application service.

    The application service details page includes the following sections.

    Module

    Description

    Pod

    View the pods that the container service contains. You can also use the web shell to log on to a container within a pod to perform operations.

    Service

    Service name, service type, service endpoint, and creation time.

    Log

    Simple Log Service configuration information. If this section is empty, you must configure log collection for the application service. For more information, see Configure logs.

    Version

    Information such as the version number, release ticket, and publishing status of the application service.

Pod details

Container console

  1. Log on to the Container Application Service console. In the navigation pane on the left, click Application Publishing > Application Service.

  2. On the Application Service list page, click the application service name to open the Application Service Details page.

  3. In the pod list, click a pod name to open the Pod Details page.

  4. In the container list, click Go to Console next to the container that you want to manage.

  5. Enter commands to manage the container.

    Example command: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]

View container details

In the container list, click a container name to open the container details page. You can view the basic information about the container. Click the tabs to view details about events, standard logs, environment variables, and volume configurations. For example, you can view the standard log records of a container for a specific time period, as shown in the following figure.

1

View pod events

For more information, see View pod events.

Service logs

Create a Logstore

Click Create Logstore. On the page that appears, set the following parameters and click Submit.

  • Logstore Name: The name must be 3 to 63 bytes in length. It can contain lowercase letters, digits, hyphens (-), and underscores (_). It must start and end with a lowercase letter or a digit.

  • Retention Period: The number of days to store logs in the Logstore. The value can range from 1 to 3,000 days. Logs are deleted after this period expires.

  • Number of Shards: The number of shards for the Logstore. You can create 1 to 10 shards for each Logstore. You can create a maximum of 200 shards in each project.

    Note

    After a Logstore is created, you can split or merge shards to change the number of shards.

Configure logs

You can configure Simple Log Service in the Pod Template Configuration section when you create an application service by selecting an existing Logstore or creating a new one. You can also configure log collection after the application service is created. For more information about configuring log collection during application service creation, see Create an application service. The following procedure describes how to configure log collection after an application service is created.

Procedure

  1. Log on to the Container Application Service console. In the navigation pane on the left, click Application Publishing > Application Service.

  2. On the Application Service list page, click the name of the application service to open the Application Service Details page.

  3. Click the Log tab and then click Configure Now to open the Edit Application Service page.

  4. In the Pod Template Configuration section, expand Advanced Configuration to find the Simple Log Service Configuration settings.

  5. Click Add Log Configuration. Set the Logstore and Path, and then click Save.

    For a description of the parameters, see Advanced configuration description. Example log path: /home/admin/release/run/logs/<appName>.

Query service logs

  1. Log on to the Container Application Service console. In the navigation pane on the left, click Application Publishing > Application Service.

  2. On the Application Service list page, click the name of the application service to open the Application Service Details page.

  3. Click the Log tab to open the Log Query page.

    You can search for logs using the following fields:

    • Logstore Name

    • Container Name

    • Keyword

    • Retrieval time

    • Pod Name

Service details

You can view the details of services that belong to an application service.

Procedure

  1. Log on to the Container Application Service console. In the navigation pane on the left, click Application Publishing > Application Service.

  2. On the Application Service list page, click the name of the application service to open the Application Service Details page.

  3. Click the Service tab to open the service list page.

  4. Click a service name to open the service details page.

    Module

    Description

    Basic Information

    Basic information about the service, such as service name, namespace, creation time, comments, and labels.

    Ports

    Port mapping information, such as protocol, frontend port, backend port, forwarding rule, node port, peak bandwidth, and session persistence information.

    Pods

    Pod selector and backend pod configuration information, such as name, status, and pod IP address.

    Endpoints

    Configuration information for available addresses, unavailable addresses, and ports.

    Events

    Event information, such as type, count, reason, and content.

    Server Load Balancer

    Displays the configuration information of the Server Load Balancer.

View service versions

You can view the version information of an application service.

Procedure

  1. Log on to the Container Application Service console. In the navigation pane on the left, click Application Publishing > Application Service.

  2. On the Application Service list page, click the name of the application service to open the Application Service Details page.

  3. Click the Version tab to open the version list page.

    By default, the current version is displayed at the top of the list. You can view the following information for each version:

    • Version: The ID of the application service version. Click a version ID to view the detailed configuration page for that version.

    • Release Ticket: If the service has been published, the ID of the associated release ticket is displayed. Click the release ticket ID to open the release ticket details page.

    • Version Status: Draft, Submitted, or Published.

    • Publishing Status: Published or Not Published.

    • Creator: The user who created the application service version.

    • Creation Time: The time when the application service version was created.

    • Operations: You can click Publish to publish the application service. You can also click Copy to Draft to create a new draft version of the application service, which you can then submit and publish. You can also click Compare Versions to view the differences between the current version and other versions.

Other operations

On the application service details page, you can also perform other operations as needed. For more information, see the following table.

Operation

Description

Update application service

On the application service details page, click Edit Configuration.

For more information, see Update an application service.

Replace image only

Click Quick Actions and select Replace Image. Select the target version image to complete the image update.

For more information, see Update an application service.

Update scaling configuration only

Click Quick Actions and select Scale. Modify the number of replicas as needed to complete the scaling configuration update.

For more information, see Update an application service.

Publish application service immediately

On the application service details page, click the Publish button in the upper-right corner to immediately publish the application service.

For more information, see Publish a service immediately.