arm架构部署rancher

1、环境部署
环境配置与x86架构的方法一样,可参考x86架构的环境离线部署rancher。

2、rancher部署
Ram64架构rancher:v2.4.5  k8s:1.5.12 网卡flannel
需要的镜像
rancher/rancher:v2.4.5-linux-arm64
rancher/rancher-agent:v2.4.5-linux-arm64
rancher/flannel-cni:v0.3.0-rancher6
rancher/rke-tools:v0.1.58
rancher/coreos-etcd:v3.3.10-rancher1
rancher/pause:3.1
rancher/kube-api-auth:v0.1.4
rancher/nginx-ingress-controller-defaultbackend:1.5-rancher1
rancher/nginx-ingress-controller:nginx-0.32.0-rancher1
coredns/coredns:1.3.1   # tag  rancher/coredns-coredns:1.31
rancher/cluster-proportional-autoscaler:1.3.0
rancher/coreos-flannel:v0.12.0
rancher/metrics-server:v0.3.4
rancher/hyperkube:v1.15.12-rancher2

公司离线下载地址
cat > image.txt << EOF
registry.cn-hangzhou.aliyuncs.com/gosun/rancher:v2.4.5-linux-arm64
registry.cn-hangzhou.aliyuncs.com/gosun/rancher-agent:v2.4.5-linux-arm64
registry.cn-hangzhou.aliyuncs.com/gosun/flannel-cni:v0.3.0-rancher6
registry.cn-hangzhou.aliyuncs.com/gosun/rke-tools:v0.1.58
registry.cn-hangzhou.aliyuncs.com/gosun/coreos-etcd:v3.3.10-rancher1
registry.cn-hangzhou.aliyuncs.com/gosun/pause:3.1
registry.cn-hangzhou.aliyuncs.com/gosun/kube-api-auth:v0.1.4
registry.cn-hangzhou.aliyuncs.com/gosun/nginx-ingress-controller-defaultbackend:1.5-rancher1
registry.cn-hangzhou.aliyuncs.com/gosun/nginx-ingress-controller:nginx-0.32.0-rancher1
registry.cn-hangzhou.aliyuncs.com/gosun/coredns:1.3.1
registry.cn-hangzhou.aliyuncs.com/gosun/cluster-proportional-autoscaler:1.3.0
registry.cn-hangzhou.aliyuncs.com/gosun/coreos-flannel:v0.12.0
registry.cn-hangzhou.aliyuncs.com/gosun/metrics-server:v0.3.4
registry.cn-hangzhou.aliyuncs.com/gosun/hyperkube:v1.15.12-rancher2
EOF
拉取镜像 
for i in $(cat image.txt);do docker pull $i;done
更改标签
for image in $(docker images|grep 'registry.cn-hangzhou.aliyuncs.com/gosun/' |awk '{print $1":"$2}'|awk -F "/" '{print $3}');do docker tag registry.cn-hangzhou.aliyuncs.com/gosun/$image rancher/$image ;done
docker tag rancher/coredns:1.3.1 rancher/coredns-coredns:1.3.1
System  dns 镜像改为rancher/coredns:1.3.1
 
或者改标签
docker tag rancher/coredns:1.3.1 rancher/coredns-coredns:1.3.1
启动rancher
mkdir -p /mnt/var/lib/rancher
docker run -itd -p 8443:443 --restart=unless-stopped \
-e CATTLE_AGENT_IMAGE="rancher/rancher-agent:v2.4.5-linux-arm64" \
-v /mnt/var/lib/rancher:/var/lib/rancher \
rancher/rancher:v2.4.5-linux-arm64
 

你可能感兴趣的:(运维,linux,kubernetes)