RHEL9 failed loading kubernetes.repo cannot install Kube apps

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.31.1
Cloud being used: RHEL9 sandbox
Installation method: dnf install
Host OS: RHEL9
###CNI and version:
###CRI and version:

cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el9-\$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

That source is long gone, please stick to upstream docs for that sort of info.

For more info, see this blog: