Configuring the Yum Source
Configure the Huawei Cloud Yum source before manually deploying Kubernetes.
- Configure the Huawei Cloud Yum source.
- Create a kubernetes.repo file in the /etc/yum.repos.d/ directory.
touch /etc/yum.repos.d/kubernetes.repo
- Open kubernetes.repo.
vi /etc/yum.repos.d/kubernetes.repo
- Press i to enter the insert mode and add the following content to the file:
[kubernetes] name=Kubernetes baseurl=https://mirrors.huaweicloud.com/kubernetes/yum/repos/kubernetes-el7-aarch64/ enabled=1 gpgcheck=1 repo_gpgcheck=0 gpgkey=https://mirrors.huaweicloud.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.huaweicloud.com/kubernetes/yum/doc/rpm-package-key.gpg
If the desired Kubernetes version is not found, you can configure another Yum source.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Create a kubernetes.repo file in the /etc/yum.repos.d/ directory.
- Update the Yum cache.
yum makecache
Parent topic: Kubernetes Deployment Guide (CentOS & openEuler)