Forum Navigation
You need to log in to create posts and topics.

Installation Error: repomd.xml signature could not be verified for kubernetes

Problem

When user trying to install kubernetes with the following commands ( after adding the repo to /etc/yum/repos.d )

sudo yum install -y kubelet kubeadm kubectl

gets the following error

https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for kubernetes

Trying other mirror.

the issue occurs due to problem yum installer cannot verify the GPG key for kubernetes ( one of the reasons can be problem with epel repository already defined and causes conflicts.

As a workaround if you dont mind about the GPG check you can fix this by. removing the yum check by editing the file

/etc/yum.repos.d/kubernetes.repo ( or what ever name you created it ) 

and change the value of gpg_check from 1 to 0

[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg