ctr-k8s image management command, push the image being used by k8s to the warehouse

​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
Insert image description here

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

Guess you like

Origin blog.csdn.net/jialiu111111/article/details/131580391