Image Repository

An image repository is provided by SoftWare Repository for Container (SWR) for you to easily store, manage, and deploy container images.

Using HUAWEI CLOUD Images

You can use HUAWEI CLOUD images for clusters added on MCP (including other cloud clusters). When creating a Deployment, you can choose images from My Images. This section describes how to use an image when creating a Deployment named game.

  1. Log in to the MCP console. In the navigation pane, choose Workloads > Deployments. On the page displayed, click Create Deployment.
  2. Set the following parameters and retain the default values for other parameters:

    • Workload Name: Set it to game.
    • Cluster: Select the cluster in which the application is to run.

  3. Click Next to add a container.

    Click Add Container. On the My Images tab page, select a pushed image and click OK.

    If multiple clusters are deployed, you can customize configurations for these clusters when adding a container, or replace the image of a certain cluster.

  4. Complete the Deployment creation by referring to Deployments.

Using Third-Party Images

You can use a third-party image for the clusters (including HUAWEI CLOUD clusters) added on MCP. Select Customized Configuration next to Container Settings of the Customize Cluster Configurations step when creating a Deployment. This section describes how to use a third-party image when creating a Deployment named game.

  1. Log in to the MCP console. In the navigation pane, choose Workloads > Deployments. On the page displayed, click Create Deployment.
  2. Set the following parameters and retain the default values for other parameters:

    • Workload Name: Set it to game.
    • Cluster: Select the cluster in which the application is to run.

  3. Click Next to add a container.

    1. Click Add Container. On the Select Image tab page, select a third-party image.
    2. Select a secret. If no secret is available, create one first.

      If your image repository does not need to be authenticated, select No for Secret Authentication.

    3. Enter the IP address of the image.
    4. Click OK.

  4. Complete the Deployment creation by referring to Deployments.