Skip to main content

Document Preview Service Upgrade

Importing Images

Each microservice node needs to download the image (Offline Package Download). During the download, there is no output in the command line; just wait for the command to complete.

crictl pull nocoly/hap-doc:version

Updating File Preview Service Version

  1. Edit the service.yaml configuration file of the microservice to update the image version of the doc service to the target version you want to upgrade to.

  2. Apply the configuration changes. After updating, the doc service will restart, upgrade, and use the new version.

    kubectl apply -f service.yaml
  3. Check the status and version of the doc service.

    # Check deployment status and image version
    kubectl get deployment -o wide | grep app=doc

    # Check Pod running status (normally should be 2/2)
    kubectl get pod -o wide | grep doc

    The service takes about 2-3 minutes to start.