edit-icon download-icon

Redeploy an application

Last Updated: Feb 11, 2018

You can redeploy an application after deploying it, if necessary. Redeploying an application re-pulls the image used by the application. Therefore, if you update the application image after deploying the application, redeployment will use the updated image to deploy the application.

Note: Redeployment does not update the data volume, which means the old data volume of the host is still used. Therefore, if you mount a data volume to the host and change the configurations of the data volume in the new image, the new configurations will not take effect after the redeployment.

Redeploy an application in the following situations:

  • You update the image after deploying the application and want to deploy the application according to the updated image.
  • You stop or delete some containers and want to activate or recreate those containers. During the redeployment, Container Service activates the stopped containers and recreates the deleted containers.

Procedure

  1. Log on to the Container Service console.

  2. Click Applications in the left-side navigation pane.

  3. Select the cluster where the application you want to redeploy resides from the Cluster list.

  4. Click Redeploy at the right of the application you want to redeploy.

    1

  5. A confirmation dialog box appears. Click OK.

Check whether the redeployment succeeds

To confirm whether the redeployment is successful or not, view the image sha256 to check whether the container image after the redeployment is the newest one.

  1. Log on to the Container Service console.

  2. Click Applications in the left-side navigation pane.

  3. Select the cluster where the redeployed application resides from the Cluster list.

  4. Click the application name.

    1

  5. Click the Containers tab to view the image sha256.

    The redeployment is successful if the container image is the newest one.

    1

Thank you! We've received your feedback.