k0s kubectl get pods -n kube-system
k0s kubectl describe pod coredns-8565977d9b-h224d -n kube-system
k0s kubectl describe pod kube-proxy-rs5gr -n kube-system
k0s kubectl describe pod kube-router-pkj7l -n kube-system
k0s kubectl describe metrics-server-74c967d8d4-gns2g -n kube-system
错误failed to pull image "k8s.gcr.io/pause:3.5"
ctr -n k8s.io i pull k8s.gcr.io/pause:3.5 #测试
ctr -n k8s.io i ls -q #查看镜像
ctr i ls -q
ctr -n k8s.io image pull registry.aliyuncs.com/google_containers/pause:3.5
ctr -n k8s.io image pull registry.aliyuncs.com/google_containers/coredns:v1.7.0
ctr -n k8s.io i tag registry.aliyuncs.com/google_containers/pause:3.5 k8s.gcr.io/pause:3.5
ctr -n k8s.io i tag registry.aliyuncs.com/google_containers/coredns:v1.7.0 k8s.gcr.io/coredns/coredns:v1.7.0
ctr -n k8s.io image ls
docker pull registry.aliyuncs.com/google_containers/pause:3.5
docker tag registry.aliyuncs.com/google_containers/pause:3.5 k8s.gcr.io/pause:3.5
docker pull registry.aliyuncs.com/google_containers/coredns:v1.7.0
docker tag registry.aliyuncs.com/google_containers/coredns:v1.7.0 k8s.gcr.io/coredns/coredns:v1.7.0
docker images
docker image rm registry.aliyuncs.com/google_containers/pause:3.5
ctr -n k8s.io image rm registry.aliyuncs.com/google_containers/pause:3.5
ctr -n k8s.io image rm registry.aliyuncs.com/google_containers/coredns:v1.7.0
ctr image rm k8s.gcr.io/pause:3.5
拉取镜像错误的处理方法二:
修改repository
https://github.com/k0sproject/k0s/blob/main/docs/configuration.md
images:
repository: "my.own.repo"
konnectivity:
image: calico/kube-controllers
version: v3.16.2
metricsserver:
image: k8s.gcr.io/metrics-server/metrics-server
version: v0.5.0
方法三:修改image