How to fix kubernetes v1.24.0 init error - failed to pull image k8s.gcr.io not found

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=0L9ugmrWSGo



Duration: 1:31
287 views
5


when i try to init kubernetes v1.24.0 in ubuntu 20.04 with below command :

kubeadm init --control-plane-endpoint=172.31.20.122 --pod-network-cidr=10.244.0.0/16

i got this error:
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-apiserver:v1.24.14: output: E0521 15:43:54.880187 6183 remote_image.go:171] "PullImage from image service failed" err="rpc error: code = NotFound desc = failed to pull and unpack image \"k8s.gcr.io/kube-apiserver:v1.24.14\": failed to resolve reference \"k8s.gcr.io/kube-apiserver:v1.24.14\": k8s.gcr.io/kube-apiserver:v1.24.14: not found" image="k8s.gcr.io/kube-apiserver:v1.24.14"
time="2023-05-21T15:43:54Z" level=fatal msg="pulling image: rpc error: code = NotFound desc = failed to pull and unpack image \"k8s.gcr.io/kube-apiserver:v1.24.14\": failed to resolve reference \"k8s.gcr.io/kube-apiserver:v1.24.14\": k8s.gcr.io/kube-apiserver:v1.24.14: not found"
, error: exit status 1

solution:
just add parameter --kubernentes-version=(your kubernetes version) on your init.




Other Videos By Ambar Hasbiyatmoko


2023-06-30How to fix: Let’s Encrypt issue in alpine linux - SSL certificate problem certificate has expired
2023-06-25How to fix an issue in wordpress - download link with HTTP format not working in wordpress
2023-06-25How to solve wordpress - Article get 404 not found, The requested URL was not found on this server
2023-06-24How to fix error when installing wordpress - Uncaught Error: Call to undefined function wp()
2023-06-20Menghapus file logs loadbalancer pada S3 bucket secara otomatis menggunakan lifecycle rules
2023-06-12How to fix php-memcached in alpine - Cannot find autoconf. Please check your autoconf installation
2023-06-11Mengaktifkan logs pada Application Load Balancer (ALB) di Cloud AWS
2023-06-09Docker - Install nginx dan php-fpm7.3 di alpine image dan build container menjadi image baru
2023-06-07How to fix kubernetes error - pods is stuck on ContainerCreating, cni0 already has an IP address
2023-05-30How to fix php-fpm7.2 error in alpine container - The application environment is not set correctly
2023-05-21How to fix kubernetes v1.24.0 init error - failed to pull image k8s.gcr.io not found
2023-05-08Fixing kubernetes - couldn't reconcile node routes:error listing routes: unable to find route table
2023-05-07How to fix 'easy fancybox' plugin error in wordpress - jump to top of page after closing popup
2023-04-27How to install Epson L3210 printer driver in ubuntu 22.04
2023-04-18[Ubuntu 22.04] How to fix VLC error: your input can't be opened: VLC is unable open the MRL file.
2023-04-17How to fix: Bad magic number in super block while trying to open /dev/xvdf Couldn't find valid file
2023-03-23How to fix nginx "file not found" when running php-fpm in alpine image docker
2023-03-19fixing winbox - router does not supporrt secure connection, please enable Legacy Mode if you want
2023-02-05Membuat website (blog) dari 0 full ngoding - #part 5 (final) Beli domain, hosting, upload sourcecode
2023-01-28Membuat website (blog) dari 0 full ngoding - #part 4 Login dan pagination
2023-01-21How to disable php tracer datadog (ddtrace, datadog-profiling, ddappsec) in ubuntu



Tags:
kubernetes
gcr
init
aws
ec2
terminal
install
error
cidr
image
pull
repository
config
ubuntu
linux
cluster