# Test Environment Help With Link

**URL:** <https://discuss.kubernetes.io/t/test-environment-help-with-link/30930>\
**Category:** General Discussions\
**Created:** [December 24, 2024, 1:55pm UTC](https://discuss.kubernetes.io/t/test-environment-help-with-link/30930 "2024-12-24T13:55:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learning\_Hoygen](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@Learning\_Hoygen](https://discuss.kubernetes.io/u/Learning_Hoygen)\
**Post date:** [December 24, 2024, 1:55pm UTC](https://discuss.kubernetes.io/t/test-environment-help-with-link/30930/1 "2024-12-24T13:55:29Z")

</div>

Hello,  
I have 3 pc with almalinux 9.5 installed.  
I wanted to experiment implementing a kubernetes cluster.  
I was following this guide: [Kubernetes on AlmaLinux: Installation and Deployment](https://phoenixnap.com/kb/kubernetes-almalinux)  
It seems I am missing a link. At step 7 when I have to actually download the kubernetes.  
I made a file for the repository

```auto
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kube>
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key>

```

when I give this command:  
sudo yum install -y kubelet kubeadm kubectl --disableexcludes=Kubernetes

I get this error:

```auto
Kubernetes 12 kB/s | 1.4 kB 00:00    
Errors during downloading metadata for repository 'kubernetes':
  - Status code: 404 for https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml (IP: 216.58.205.46)
Error: Failed to download metadata for repo 'kubernetes': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

```

Do you have any helpful suggestion?  
Since I’m writing now, I wish a merry XMAS EVE to everyone.

---

<div class="post-metadata">

**Author:** ![Learning\_Hoygen](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@Learning\_Hoygen](https://discuss.kubernetes.io/u/Learning_Hoygen)\
**Post date:** [December 24, 2024, 2:48pm UTC](https://discuss.kubernetes.io/t/test-environment-help-with-link/30930/2 "2024-12-24T14:48:27Z")

</div>

> **[Install and Set Up kubectl on Linux](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-using-native-package-management)**
>
> Before you begin You must use a kubectl version that is within one minor version difference of your cluster. For example, a v1.32 client can communicate with v1.31, v1.32, and v1.33 control planes. Using the latest compatible version of kubectl helps...

this should fix it

```auto
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.32/rpm/
enabled=1
gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.32/rpm/repodata/repomd.xml.key
EOF

```
