k8s
image management commands
Find out the image used by pod in k8s
kubectl get -o wide deploy -n yxyw-uat |awk ‘{print $7}’
Find the image address, check the beginning of the regular expression and add the image push command
gem-acr-p-a01-registry-vpc.cn-shenzhen.cr.aliyuncs.com/osale/gyx-admin:yxyw-pre-2023-06-05-11-18-10
Push
the image used by the pod to the Alibaba Cloud image warehouse
ctr -n k8s.io i push -u lj@gemdale-ali:passwd gem-acr-p-a01-registry-vpc.cn-shenzhen.cr.aliyuncs.com/osale/gyx-admin:yxyw-pre-2023-06-05-11-18-10