kubeadm: [Kubeadm] Failing to pull images
Is this a BUG REPORT or FEATURE REQUEST?
Choose one: BUG REPORT
Versions
kubeadm version: v1.11.* (reproduced on all v1.11 and v1.12 releases)
Environment:
- Kubernetes version : v1.11.* (reproduced on all v1.11 and v1.12 releases)
- OS: RHEL 7.5
- Kernel: 3.10.0-862.11.6.el7.x86_64
What happened?
When running kubeadm init the images fail to be pulled:
[root@pink01 ~]# kubeadm init --pod-network-cidr=192.168.0.0/16 --kubernetes-version=v1.11.1
[init] using Kubernetes version: v1.11.1
[preflight] running pre-flight checks
I1031 06:34:55.007573 7218 kernel_validator.go:81] Validating kernel version
I1031 06:34:55.007833 7218 kernel_validator.go:96] Validating kernel config
[preflight/images] Pulling images required for setting up a Kubernetes cluster
[preflight/images] This might take a minute or two, depending on the speed of your internet connection
[preflight/images] You can also perform this action in beforehand using 'kubeadm config images pull'
[preflight] Some fatal errors occurred:
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-apiserver-amd64:v1.11.1]: exit status 1
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-controller-manager-amd64:v1.11.1]: exit status 1
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-scheduler-amd64:v1.11.1]: exit status 1
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-proxy-amd64:v1.11.1]: exit status 1
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/pause:3.1]: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
What you expected to happen?
Images should be pulled
How to reproduce it (as minimally and precisely as possible)?
kubeadm init --pod-network-cidr=192.168.0.0/16 --kubernetes-version=v1.11.1
Anything else we need to know?
Also reproduced on latest (v1.12.2). Tried manually too:
[root@pink01 ~]# kubeadm config images pull
failed to pull image "k8s.gcr.io/kube-apiserver:v1.12.2": output: Error response from daemon: Get https://k8s.gcr.io/v2/kube-apiserver/manifests/v1.12.2: Get https://k8s.gcr.io/v2/token?scope=repository%3Akube-apiserver%3Apull&service=k8s.gcr.io: net/http: TLS handshake timeout
, error: exit status 1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (9 by maintainers)
I had the same problem. I have a proxy but docker refuse to take it so have to configure the proxy to the docker client https://www.thegeekdiary.com/how-to-configure-docker-to-use-proxy/ And it’s work.
try posting in the #kubeadm channel of the k8s slack. this might provide some reports if other users are experiecing the same problem.