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
-
Edit the
service.yaml
configuration file of the microservice to update theimage
version of thedoc
service to the target version you want to upgrade to. -
Apply the configuration changes. After updating, the
doc
service will restart, upgrade, and use the new version.kubectl apply -f service.yaml
-
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 docThe service takes about 2-3 minutes to start.