diff options
author | Guo Ruijing <ruijing.guo@intel.com> | 2017-12-21 04:17:48 -0500 |
---|---|---|
committer | Guo Ruijing <ruijing.guo@intel.com> | 2017-12-21 04:46:35 -0500 |
commit | 09c951502f43c477d48903bc335905b2d5287295 (patch) | |
tree | 9cdc3180d96ea25bfb6cffd08e6b0ddc5c5f2184 /src/vagrant/kubeadm_onap/worker_setup.sh | |
parent | 35951994a9a6eafd94e59958b0c97d80a8660742 (diff) |
onap deployment by kubeadm + onap oom
Change-Id: I4db577c754a4cd550482e40c2a96004faf65bd24
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_onap/worker_setup.sh')
-rwxr-xr-x | src/vagrant/kubeadm_onap/worker_setup.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_onap/worker_setup.sh b/src/vagrant/kubeadm_onap/worker_setup.sh new file mode 100755 index 0000000..aa60df3 --- /dev/null +++ b/src/vagrant/kubeadm_onap/worker_setup.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -ex + +sudo mkdir /dockerdata-nfs +sudo chmod 755 /dockerdata-nfs +sudo kubeadm join --token 8c5adc.1cec8dbf339093f0 192.168.0.10:6443 || true + +sudo apt-get install -y putty-tools +mkdir ~/.kube +echo "y\n" | plink -ssh -pw vagrant vagrant@master "cat ~/.kube/config" > ~/.kube/config |