Network mode for the ack-onepilot component

Updated at:
Copy as MD

This topic explains how to specify the network mode for the ack-onepilot component.

Prerequisites

The ack-onepilot component must be version 4.1.2 or later.

Procedure

  1. Log on to the ACK console. In the left navigation pane, click Clusters.

  2. On the Clusters page, click the name of your cluster. In the left navigation pane, click Workloads > Deployments.

  3. On the Stateless page, click the ack-onepilot component. It is typically named ack-onepilot-ack-onepilot and is in the ack-onepilot namespace.

  4. On the ack-onepilot component details page, click Edit in the upper-right corner. Then, add the ALIYUN_NETWORK environment variable and set it to one of the following values:

    • public: Forces the component to use the public network.

    • internal: Forces the component to use the internal network.

    • auto: (Default) The component prioritizes the internal network. If the internal network is unavailable, it falls back to the public network for network requests and to pull the agent package.

  5. Restart the ack-onepilot component. Then, verify that its container status is Running.