Config two master node when run KUBERNETES_PROVIDER=ubuntu ./kube-up.sh

5/19/2016

I'm trying to setup Kube's cluster with 2 master node 10.0.11.108 and 10.0.11.97 (Ubuntu) with config "ai ai" in cluster/ubuntu/config-default.sh file.

When I run

KUBERNETES_PROVIDER=ubuntu ./kube-up.sh, 

it run deployscript in node 10.0.11.97 twice. And become error:

[sudo] password to copy files and start node: cp: cannot create regular file ‘/opt/bin/etcd’: Text file busy cp: cannot create regular file ‘/opt/bin/kube-apiserver’: Text file busy cp: cannot create regular file ‘/opt/bin/kube-controller-manager’: Text file busy cp: cannot create regular file ‘/opt/bin/kube-scheduler’: Text file busy start: Job is already running: etcd

-- luanbuingoc
kubernetes

1 Answer

8/22/2016

I setup Kube's cluster with 1 master, run twice, encounter the same error message, I modified utuntu/util.sh, and get 'Cluster validation succeeded'.

First add -f for all cp commands, like this: cp ~/kube/default/* /etc/default/ ===> cp -f ~/kube/default/* /etc/default/

Then rerun ./kube-up.sh, you will encounter "start: Job is already running: etcd"

Then modified utuntu/util.sh, modify all 'service XXX start' to 'service XXX restart' , and run kube-up.sh, You'll get the success message.

-- tianmai
Source: StackOverflow