summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_onap/worker_setup.sh
blob: e65a65ca64395440d8b211093a60c8211f075c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -ex

sudo apt-get -y install ntp
cat << EOF | sudo tee /etc/ntp.conf
pool master
EOF
sudo service ntp restart

sudo kubeadm join --discovery-token-unsafe-skip-ca-verification --token 8c5adc.1cec8dbf339093f0 192.168.0.10:6443 || true

sudo apt-get install nfs-common -y
sudo mkdir /dockerdata-nfs
sudo chmod 777 /dockerdata-nfs
sudo mount master:/dockerdata-nfs /dockerdata-nfs