A set of tools and commands to extend the functionality of Apolo platform CLI client.
Image Operations
Copying Images
Images can be copied between different projects, organizations, and clusters using the apolo-extras image transfer command.
Between Projects:
# Copy image from project1 to project2 within the same cluster
apolo-extras image transfer \
image:/project/image:tag \
image:/target-project/image:tag
# Force overwrite existing image
apolo-extras image transfer -F \
image:/project/image:tag \
image:/target-project/image:tag
Between Clusters:
You need to image the image's full path including cluster, organization and project to be able to copy between clusters.
# Copy image between different clusters
apolo-extras image transfer \
image://cluster/organization/project/image:tag \
image://target-cluster/target-organization/target-project/image:tag
Building Images
The platform provides two methods for building images: remote building using Kaniko (build) and local building using Docker (local-build).
It is possible to push images from your local machine to Apolo Platform Registry. Use the following command to save a config.json file with the authentication credentials.
The apolo-extras data transfer command facilitates data movement between different internal storage locations. This is not supported with regular Apolo CLI apolo cp.
Between directories in the same project:
# Copy data between directories on the same project
apolo-extras data transfer storage:folder1 storage:folder2
Between Projects:
# Copy data between projects on the same cluster
apolo-extras data transfer storage:/project1/data storage:/project2/data
# Copy data between disks
apolo-extras data transfer disk:disk1:/data disk:disk2:/data
Between Clusters:
# Copy data between clusters
apolo-extras data transfer \
storage://cluster1/organization/project/directory \
storage://cluster2/organization/project/directory
External Storage Operations
The platform supports various external storage systems with different authentication methods.
Google Cloud Storage (GCS)
Create a Apolo Secret containing GCP service account credentials to access the data on GCP.