k8s镜像管理命令
查出k8s中pod在使用的镜像
kubectl get -o wide deploy -n yxyw-uat |awk ‘{print $7}’
查出镜像地址,勾选正则开头配上镜像推送命令
gem-acr-p-a01-registry-vpc.cn-shenzhen.cr.aliyuncs.com/osale/gyx-admin:yxyw-pre-2023-06-05-11-18-10
将pod在使用的镜像推送到阿里云镜像仓库
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