银河麒麟V10离线安装k8s

0、准备离线安装包
a)准备Yum源
[kubernetes]
[kubernetes]
name=Kubernetes Repo
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-aarch64/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
b)下载离线安装包
#利用yum install 包名 --downloadonly --downloaddir=/home下载所需要的离线安装包
#下载所需要的容器镜像,并且保存到本地
#!/bin/bash
images=(
kube-apiserver:v1.18.20
kube-controller-manager:v1.18.20
kube-scheduler:v1.18.20
kube-proxy:v1.18.20
pause:3.2
etcd:3.4.3-0
coredns:1.6.7
)
for imageName in ${images[@]};
do
    docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/${imageName}
    docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/${imageName} k8s.gcr.io/${imageName}
    docker save -o ${imageName}.tar k8s.gcr.io/${imageName}
done

1、关闭所有节点关

你可能感兴趣的:(银河麒麟操作系统,Kubernetes,docker)