summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_onap/worker_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/vagrant/kubeadm_onap/worker_setup.sh')
-rwxr-xr-xsrc/vagrant/kubeadm_onap/worker_setup.sh11
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