sighupio / fury-kubernetes-on-premises

Kubernetes Fury Distribution On-Premises Core Module: Create on-prem Kubernetes Clusters
BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

Rockylinux 9 - Failed to download metadata for repo 'kubernetes' #72

Closed giusepperotella closed 9 months ago

giusepperotella commented 9 months ago

Hi everyone, I open this ticket because I encountered a problem using the on-prem module in version 1.27.6. Specifically, running the cluster.yaml playbook, the "Install Kubernetes dependecies" task fails with the following error: 'Failed to download metadata for repo ''kubernetes'': Cannot download repomd.xml: Cannot download repodata/repodm.xml: all mirrors were tried'

By carrying out some checks I saw that the repo used to download the packages seems to be deprecated. I noticed that this issue is already present on this module which could be the case encountered:

Below is the environment on which I tested:

As a local resolution, I updated the yum_repo and yum_repo_key parameters present in the roles/kube-node-common/vars/main.yml file, as indicated by the official doc.