[LFS258] : Getting "[ERROR ImagePull]: failed to pull image registry.k8s.io/kube-apiserver:v1.29.1"
I am trying to install control plane node using instructions mentioned in the pdf file of LFS258 course : Lab3.1 : Install Kubernetes
While executing "kubeadm init --config=kubeadm-config.yaml --upload-certs | tee kubeadm-init.out" command I am getting these errors:
root@cp1:~# kubeadm init --config=kubeadm-config.yaml --upload-certs | tee kubeadm-init.out
[init] Using Kubernetes version: v1.29.1
[preflight] Running pre-flight checks
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
W0718 11:06:58.616485 56774 checks.go:835] detected that the sandbox image "registry.k8s.io/pause:3.8" of the container runtime is inconsistent with that used by kubeadm. It is recommended that using "registry.k8s.io/pause:3.9" as the CRI sandbox image.
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR ImagePull]: failed to pull image registry.k8s.io/kube-apiserver:v1.29.1: output: E0718 11:06:54.234274 56863 remote_image.go:180] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image \"registry.k8s.io/kube-apiserver:v1.29.1\": failed to resolve reference \"registry.k8s.io/kube-apiserver:v1.29.1\": failed to do request: Head \"https://asia-south1-docker.pkg.dev/v2/k8s-artifacts-prod/images/kube-apiserver/manifests/v1.29.1\": read tcp 10.237.76.135:46734->64.233.170.82:443: read: connection reset by peer" image="registry.k8s.io/kube-apiserver:v1.29.1"
time="2024-07-18T11:06:54Z" level=fatal msg="pulling image: failed to pull and unpack image \"registry.k8s.io/kube-apiserver:v1.29.1\": failed to resolve reference \"registry.k8s.io/kube-apiserver:v1.29.1\": failed to do request: Head \"https://asia-south1-docker.pkg.dev/v2/k8s-artifacts-prod/images/kube-apiserver/manifests/v1.29.1\": read tcp 10.237.76.135:46734->64.233.170.82:443: read: connection reset by peer"
, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.k8s.io/kube-controller-manager:v1.29.1: output: E0718 11:06:55.327594 56921 remote_image.go:180] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image \"registry.k8s.io/kube-controller-manager:v1.29.1\": failed to resolve reference \"registry.k8s.io/kube-controller-manager:v1.29.1\": failed to do request: Head \"https://asia-south1-docker.pkg.dev/v2/k8s-artifacts-prod/images/kube-controller-manager/manifests/v1.29.1\": read tcp 10.237.76.135:46762->64.233.170.82:443: read: connection reset by peer" image="registry.k8s.io/kube-controller-manager:v1.29.1"
time="2024-07-18T11:06:55Z" level=fatal msg="pulling image: failed to pull and unpack image \"registry.k8s.io/kube-controller-manager:v1.29.1\": failed to resolve reference \"registry.k8s.io/kube-controller-manager:v1.29.1\": failed to do request: Head \"https://asia-south1-docker.pkg.dev/v2/k8s-artifacts-prod/images/kube-controller-manager/manifests/v1.29.1\": read tcp 10.237.76.135:46762->64.233.170.82:443: read: connection reset by peer"
I am getting these errors for these images which kubeadm is trying to pull:
registry.k8s.io/kube-apiserver:v1.29.1
registry.k8s.io/kube-controller-manager:v1.29.1
registry.k8s.io/kube-scheduler:v1.29.1
registry.k8s.io/kube-proxy:v1.29.1
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.12-0
I have followed pdf steps in order. Still getting this error.
Is there any workaround to this issue?
I am using "Ubuntu 20.04.6 LTS" vm which is in office lab.
Thanks!
Answers
-
Hi @tdhanu2000,
If this is a VM provisioned on an office infrastructure, please verify with your company infra admins that there are no firewalls, proxies, or policies in place that are preventing access to the desired image registries.
Alternately, you may try to provision the VM on a personal workstation, or on a cloud VM (AWS, GCP, Azure, IBM Cloud, Digital Ocean, etc...)
Regards,
-Chris0 -
Thanks @chrispokorni ! admins may not be able to alter security policies. So I have moved to GCP.
I was able to deploy Kubernetes 1.29 cluster as per instructions in chapter 3. It worked perfectly.
Thanks again!0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 769 Linux Foundation IT Professional Programs
- 379 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 75 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 102 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 7 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 16 Cloud & Containers Training
- 2 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 2 Networking Training
- 2 Open Source Best Practice Training
- 4 System Administration Training
- 1 System Engineering Training
- 2 Web & Application Development Training
- 796 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 91 Storage
- 771 Linux Distributions
- 81 Debian
- 68 Fedora
- 23 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 466 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 79 Network Management
- 101 System Management
- 46 Web Management
- 127 Mobile Computing
- 20 Android
- 92 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 400 Off Topic
- 124 Introductions
- 32 Study Material
- 1K Programming and Development
- 310 Kernel Development
- 705 Software Development
- 1K Software
- 409 Applications
- 182 Command Line
- 5 Compiling/Installing
- 70 Games
- 318 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)