这里使用的是1.19.4版本镜像
[root@c1 ~]# kubeadm config images list
k8s.gcr.io/kube-apiserver:v1.19.4
k8s.gcr.io/kube-controller-manager:v1.19.4
k8s.gcr.io/kube-scheduler:v1.19.4
k8s.gcr.io/kube-proxy:v1.19.4
k8s.gcr.io/pause:3.2
k8s.gcr.io/etcd:3.4.13-0
k8s.gcr.io/coredns:1.7.0
拉取镜像
docker pull registry.cn-beijing.aliyuncs.com/s8k/kube-apiserver:v1.19.4
docker pull registry.cn-beijing.aliyuncs.com/s8k/kube-controller-manager:v1.19.4
docker pull registry.cn-beijing.aliyuncs.com/s8k/kube-scheduler:v1.19.4
docker pull registry.cn-beijing.aliyuncs.com/s8k/kube-proxy:v1.19.4
docker pull registry.cn-beijing.aliyuncs.com/s8k/pause:3.2
docker pull registry.cn-beijing.aliyuncs.com/s8k/etcd:3.4.13-0
docker pull registry.cn-beijing.aliyuncs.com/s8k/coredns:1.7.0
改名
docker tag registry.cn-beijing.aliyuncs.com/s8k/kube-apiserver:v1.19.4 k8s.gcr.io/kube-apiserver:v1.19.4
docker tag registry.cn-beijing.aliyuncs.com/s8k/kube-controller-manager:v1.19.4 k8s.gcr.io/kube-controller-manager:v1.19.4
docker tag registry.cn-beijing.aliyuncs.com/s8k/kube-scheduler:v1.19.4 k8s.gcr.io/kube-scheduler:v1.19.4
docker tag registry.cn-beijing.aliyuncs.com/s8k/kube-proxy:v1.19.4 k8s.gcr.io/kube-proxy:v1.19.4
docker tag registry.cn-beijing.aliyuncs.com/s8k/pause:3.2 k8s.gcr.io/pause:3.2
docker tag registry.cn-beijing.aliyuncs.com/s8k/etcd:3.4.13-0 k8s.gcr.io/etcd:3.4.13-0
docker tag registry.cn-beijing.aliyuncs.com/s8k/coredns:1.7.0 k8s.gcr.io/coredns:1.7.0
删除tag
docker rmi registry.cn-beijing.aliyuncs.com/s8k/kube-apiserver:v1.19.4
docker rmi registry.cn-beijing.aliyuncs.com/s8k/kube-controller-manager:v1.19.4
docker rmi registry.cn-beijing.aliyuncs.com/s8k/kube-scheduler:v1.19.4
docker rmi registry.cn-beijing.aliyuncs.com/s8k/kube-proxy:v1.19.4
docker rmi registry.cn-beijing.aliyuncs.com/s8k/pause:3.2
docker rmi registry.cn-beijing.aliyuncs.com/s8k/etcd:3.4.13-0
docker rmi registry.cn-beijing.aliyuncs.com/s8k/coredns:1.7.0