All Products
Search
Document Center

Application Real-Time Monitoring Service:How do I use ack-onepilot when a VPC connection cannot be established?

Last Updated:Dec 30, 2024

Background Information

When you use the ack-onepilot component to run an init container in an application, the ONEPILOT_INIT_IMAGE_URL parameter of the ack-onepilot deployment is automatically set to the virtual private cloud (VPC) endpoint of the init container image. Notably, even if you manually modify the value to a URL other than a VPC endpoint, ack-onepilot will automatically convert it to a VPC endpoint.

image

Procedure

To prevent ack-onepilot from pulling the init-container image through the VPC endpoint, take the following steps:

  1. Add the environment variable NODE_IS_EXTERNAL=true to the ack-onepilot deployment.

  2. Remove the -vpc suffix from the value of ONEPILOT_INIT_IMAGE_URL of the ack-onepilot deployment.

  3. Restart the ack-onepilot deployment.

After the ack-onepilot deployment is restarted, newly connected applications (in this example, registry-cn-hangzhou.ack.aliyuncs.com/acs/ack-onepilot-init:3.2.5) will pull the init-container image via the Internet.