Document Preview Service Upgrade
Image Pull
Before performing the update, ensure that all microservice nodes have successfully imported the corresponding architecture images (Offline Package Download).
- AMD64
- ARM64
crictl pull registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:2.0.0
crictl pull registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc-arm64:2.0.0
- There is no real-time progress output during the image pull process; please wait patiently until the task is completed.
Update the File Preview Service Version
1. Edit the Configuration File
Edit the service.yaml configuration file for the microservice and update the image version of the doc service to the target version you want to upgrade to.
- AMD64
- ARM64
# Example configuration snippet
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:2.0.0
# Example configuration snippet
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc-arm64:2.0.0
2. Apply Configuration Changes
Once the update is complete, the doc service will restart, upgrade, and use the new version.
kubectl apply -f service.yaml
3. Check the doc Service Status and Version
# Check deployment status and image version
kubectl get deployment -o wide | grep app=doc
# Check Pod running status (normal should be 2/2). Service startup and full readiness typically require about 2-3 minutes.
kubectl get pod -o wide | grep doc