Run kubeadm and hyperkube outside of local_release_dir (#4098)

Addressing the discussion started in #4064, this PR moves kubeadm and
hyperkube binaries to /usr/local/bin before running them on the master
nodes.

It is to address the case where local_release_dir points to /tmp
(kubespray default) and /tmp is mounted with noexec mode, preventing
any binaries to be run in that partition.

In role "node", we still move kubeadm to bin_dir only on the worker
nodes.
This commit is contained in:
Florent Monbillard
2019-01-28 05:00:49 -05:00
committed by Kubernetes Prow Robot
parent ce8ba1f170
commit 2054a98cf7
3 changed files with 44 additions and 2 deletions

View File

@@ -152,7 +152,7 @@
- kube-proxy
- name: Cleanup kube-proxy leftovers from node
command: "{{ local_release_dir }}/hyperkube kube-proxy --cleanup"
command: "{{ bin_dir }}/hyperkube kube-proxy --cleanup"
when:
- kube_proxy_remove
# `kube-proxy --cleanup`, being Ok as per shown WARNING, still returns 255 from above run (?)