Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Yum Source

Configure the Huawei Cloud Yum source before manually deploying Kubernetes.

  1. Configure the Huawei Cloud Yum source.
    1. Create a kubernetes.repo file in the /etc/yum.repos.d/ directory.
      touch /etc/yum.repos.d/kubernetes.repo
    2. Open kubernetes.repo.
      vi /etc/yum.repos.d/kubernetes.repo
    3. 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.

    4. Press Esc, type :wq!, and press Enter to save the file and exit.
  2. Update the Yum cache.
    yum makecache