diff options
-rw-r--r-- | compass-tasks-k8s/arm64/docker-pkg.patch | 47 | ||||
-rw-r--r-- | compass-tasks-k8s/arm64/run.sh | 8 | ||||
-rw-r--r-- | compass-tasks-k8s/arm64/thunderx1.patch | 53 |
3 files changed, 22 insertions, 86 deletions
diff --git a/compass-tasks-k8s/arm64/docker-pkg.patch b/compass-tasks-k8s/arm64/docker-pkg.patch index 75a0ec1..11e3ffc 100644 --- a/compass-tasks-k8s/arm64/docker-pkg.patch +++ b/compass-tasks-k8s/arm64/docker-pkg.patch @@ -1,22 +1,22 @@ -From c053406e75618bb445da2be41c880c2420095d6e Mon Sep 17 00:00:00 2001 +From cf5025dcea741a8491fc7bf219cc2ca29fcac29d Mon Sep 17 00:00:00 2001 From: Yibo Cai <yibo.cai@linaro.org> -Date: Tue, 10 Apr 2018 13:25:00 +0800 +Date: Thu, 19 Apr 2018 15:45:20 +0800 Subject: [PATCH] fixup docker package --- - roles/docker/tasks/systemd.yml | 10 +++++++++- - roles/docker/templates/docker-options-centos.conf.j2 | 8 ++++++++ - roles/docker/vars/debian.yml | 8 +++++++- - roles/docker/vars/redhat.yml | 7 ++++++- - roles/docker/vars/ubuntu.yml | 8 +++++++- - 5 files changed, 37 insertions(+), 4 deletions(-) + roles/docker/tasks/systemd.yml | 8 ++++++++ + roles/docker/templates/docker-options-centos.conf.j2 | 8 ++++++++ + roles/docker/vars/debian.yml | 8 +++++++- + roles/docker/vars/redhat.yml | 7 ++++++- + roles/docker/vars/ubuntu.yml | 8 +++++++- + 5 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 roles/docker/templates/docker-options-centos.conf.j2 diff --git a/roles/docker/tasks/systemd.yml b/roles/docker/tasks/systemd.yml -index ec4bbf9..77531c1 100644 +index 90425fe..0953777 100644 --- a/roles/docker/tasks/systemd.yml +++ b/roles/docker/tasks/systemd.yml -@@ -36,6 +36,14 @@ +@@ -30,6 +30,14 @@ src: docker-options.conf.j2 dest: "/etc/systemd/system/docker.service.d/docker-options.conf" notify: restart docker @@ -31,13 +31,6 @@ index ec4bbf9..77531c1 100644 - name: Write docker dns systemd drop-in template: -@@ -44,4 +52,4 @@ - notify: restart docker - when: dns_mode != 'none' and resolvconf_mode == 'docker_dns' - --- meta: flush_handlers -\ No newline at end of file -+- meta: flush_handlers diff --git a/roles/docker/templates/docker-options-centos.conf.j2 b/roles/docker/templates/docker-options-centos.conf.j2 new file mode 100644 index 0000000..829134e @@ -53,12 +46,12 @@ index 0000000..829134e +--signature-verification=false \ +--iptables=false" diff --git a/roles/docker/vars/debian.yml b/roles/docker/vars/debian.yml -index 240e86e..5d87d48 100644 +index 587e910..05d69fe 100644 --- a/roles/docker/vars/debian.yml +++ b/roles/docker/vars/debian.yml -@@ -10,10 +10,16 @@ docker_versioned_pkg: - 'stable': docker-engine=17.03.0~ce-0~debian-{{ ansible_distribution_release|lower }} - 'edge': docker-engine=17.03.0~ce-0~debian-{{ ansible_distribution_release|lower }} +@@ -11,10 +11,16 @@ docker_versioned_pkg: + 'stable': docker-engine=17.03.1~ce-0~debian-{{ ansible_distribution_release|lower }} + 'edge': docker-engine=17.05.0~ce-0~debian-{{ ansible_distribution_release|lower }} +#docker_package_info: +# pkg_mgr: apt @@ -75,10 +68,10 @@ index 240e86e..5d87d48 100644 docker_repo_key_info: diff --git a/roles/docker/vars/redhat.yml b/roles/docker/vars/redhat.yml -index 8b20def..d5625fa 100644 +index 23c5419..42ab2a4 100644 --- a/roles/docker/vars/redhat.yml +++ b/roles/docker/vars/redhat.yml -@@ -14,10 +14,15 @@ docker_versioned_pkg: +@@ -15,10 +15,15 @@ docker_versioned_pkg: # https://docs.docker.com/engine/installation/linux/centos/#install-from-a-package # https://download.docker.com/linux/centos/7/x86_64/stable/Packages/ @@ -96,12 +89,12 @@ index 8b20def..d5625fa 100644 docker_repo_key_info: pkg_key: '' diff --git a/roles/docker/vars/ubuntu.yml b/roles/docker/vars/ubuntu.yml -index 1fd7efd..172afd3 100644 +index f11f5bb..5992f8a 100644 --- a/roles/docker/vars/ubuntu.yml +++ b/roles/docker/vars/ubuntu.yml -@@ -10,10 +10,16 @@ docker_versioned_pkg: - 'stable': docker-engine=17.03.0~ce-0~ubuntu-{{ ansible_distribution_release|lower }} - 'edge': docker-engine=17.03.0~ce-0~ubuntu-{{ ansible_distribution_release|lower }} +@@ -11,10 +11,16 @@ docker_versioned_pkg: + 'stable': docker-engine=17.03.1~ce-0~ubuntu-{{ ansible_distribution_release|lower }} + 'edge': docker-engine=17.05.0~ce-0~ubuntu-{{ ansible_distribution_release|lower }} +#docker_package_info: +# pkg_mgr: apt diff --git a/compass-tasks-k8s/arm64/run.sh b/compass-tasks-k8s/arm64/run.sh index d75e28d..a9e9cee 100644 --- a/compass-tasks-k8s/arm64/run.sh +++ b/compass-tasks-k8s/arm64/run.sh @@ -10,15 +10,11 @@ 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 +git checkout f4180503c891bea4b4b77a2f7cc93923411a7449 -b k8s1.9.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 +pip install ansible==2.4.2.0 diff --git a/compass-tasks-k8s/arm64/thunderx1.patch b/compass-tasks-k8s/arm64/thunderx1.patch deleted file mode 100644 index 8ce9f73..0000000 --- a/compass-tasks-k8s/arm64/thunderx1.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 97355abab655f9f2935e6e48fc11ec46dd3c7c26 Mon Sep 17 00:00:00 2001 -From: Yibo Cai <yibo.cai@linaro.org> -Date: Thu, 25 Jan 2018 16:17:02 +0800 -Subject: [PATCH] workaround thunderx with longer timeout - ---- - roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 | 2 +- - .../master/templates/manifests/kube-controller-manager.manifest.j2 | 2 +- - roles/kubernetes/master/templates/manifests/kube-scheduler.manifest.j2 | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 -index 58c7629..554410d 100644 ---- a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 -+++ b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 -@@ -102,7 +102,7 @@ spec: - host: 127.0.0.1 - path: /healthz - port: {{ kube_apiserver_insecure_port }} -- initialDelaySeconds: 30 -+ initialDelaySeconds: 120 - timeoutSeconds: 10 - volumeMounts: - - mountPath: {{ kube_config_dir }} -diff --git a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 -index bf03e60..87e8b5c 100644 ---- a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 -+++ b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 -@@ -70,7 +70,7 @@ spec: - host: 127.0.0.1 - path: /healthz - port: 10252 -- initialDelaySeconds: 30 -+ initialDelaySeconds: 120 - timeoutSeconds: 10 - volumeMounts: - - mountPath: /etc/ssl -diff --git a/roles/kubernetes/master/templates/manifests/kube-scheduler.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-scheduler.manifest.j2 -index 6353ca1..cac8c64 100644 ---- a/roles/kubernetes/master/templates/manifests/kube-scheduler.manifest.j2 -+++ b/roles/kubernetes/master/templates/manifests/kube-scheduler.manifest.j2 -@@ -44,7 +44,7 @@ spec: - host: 127.0.0.1 - path: /healthz - port: 10251 -- initialDelaySeconds: 30 -+ initialDelaySeconds: 120 - timeoutSeconds: 10 - volumeMounts: - - mountPath: /etc/ssl --- -2.7.4 - |