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.
Procedure
To prevent ack-onepilot from pulling the init-container image through the VPC endpoint, take the following steps:
Add the environment variable
NODE_IS_EXTERNAL=true
to the ack-onepilot deployment.Remove the
-vpc
suffix from the value of ONEPILOT_INIT_IMAGE_URL of the ack-onepilot deployment.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.