diff options
author | Yibo Cai <yibo.cai@arm.com> | 2018-04-18 11:01:17 +0800 |
---|---|---|
committer | Yibo Cai <yibo.cai@arm.com> | 2018-04-24 13:49:52 +0800 |
commit | 18546e6ef020c8b505475c68d643020e09e48496 (patch) | |
tree | 5a94b8232609e8b7020c3193abd577a86770a673 /compass-tasks-k8s/arm64/run.sh | |
parent | 7a6fed1fe9795774236d6149cabaf559221401ce (diff) |
compass-tasks-k8s: support arm64
Gaps from x86 to be fixed:
- kubernetes version: arm = 1.7.5, x86_64 = 1.9.1
- arm64/: arm specific patches
Change-Id: I0cb11ea304da1cf8de6dd582190a04cc111b1ff9
Signed-off-by: Yibo Cai <yibo.cai@arm.com>
Diffstat (limited to 'compass-tasks-k8s/arm64/run.sh')
-rw-r--r-- | compass-tasks-k8s/arm64/run.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/compass-tasks-k8s/arm64/run.sh b/compass-tasks-k8s/arm64/run.sh new file mode 100644 index 0000000..d75e28d --- /dev/null +++ b/compass-tasks-k8s/arm64/run.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +yum install git ntp wget ntpdate openssh-server python-devel sudo '@Development Tools' -y +#yum install -y python-yaml +systemctl stop firewalld +systemctl mask firewalld + +# get kubespray code and install requirement +rm -rf /opt/kargo_k8s +git clone https://github.com/kubernetes-incubator/kubespray.git /opt/kargo_k8s +cd /opt/kargo_k8s + +git checkout v2.2.1 + +# bugfix: https://github.com/kubernetes-incubator/kubespray/pull/1727 +git format-patch -1 dae9f6d3 --stdout | git apply +# support etcd on arm64 +git apply /root/etcd-arm64.patch +# increase container startup timeout +git apply /root/thunderx1.patch +# fix docker package +git apply /root/docker-pkg.patch + +pip install ansible==2.3.1.0 |