blob: aa60df3b820383cef0a35c8b6175e9dbbe1a7c15 (
plain)
1
2
3
4
5
6
7
8
9
10
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
|