summaryrefslogtreecommitdiffstats
path: root/compass-tasks-k8s/arm64/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compass-tasks-k8s/arm64/run.sh')
-rw-r--r--compass-tasks-k8s/arm64/run.sh20
1 files changed, 20 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..a9e9cee
--- /dev/null
+++ b/compass-tasks-k8s/arm64/run.sh
@@ -0,0 +1,20 @@
+#!/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 f4180503c891bea4b4b77a2f7cc93923411a7449 -b k8s1.9.1
+
+# support etcd on arm64
+git apply /root/etcd-arm64.patch
+# fix docker package
+git apply /root/docker-pkg.patch
+
+pip install ansible==2.4.2.0