Skip to content

Commit

Permalink
Merge pull request #156 from polycube-network/pr/fix_k8s_vagrant_file
Browse files Browse the repository at this point in the history
Vagrant: fix bad url and file name
  • Loading branch information
frisso committed Jun 21, 2019
2 parents 42d1066 + ab4b16e commit 7671d79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/vagrant/pcn-k8s/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ $configureBox = <<-SCRIPT
# ip of this box
IP_ADDR=`ifconfig enp0s8 | grep mask | awk '{print $2}'| cut -f2 -d:`
# set node-ip
sudo sed -i "/^[^#]*KUBELET_EXTRA_ARGS=/c\KUBELET_EXTRA_ARGS=--node-ip=$IP_ADDR" /etc/default/kubelet
sudo sed -i "/^[^#]*KUBELET_EXTRA_ARGS=/c\KUBELET_EXTRA_ARGS=--node-ip=$IP_ADDR" /var/lib/kubelet/kubeadm-flags.env
sudo systemctl restart kubelet
SCRIPT

Expand All @@ -82,8 +82,8 @@ $configureMaster = <<-SCRIPT
# install PCN-K8S-CNI pod network addon
export KUBECONFIG=/etc/kubernetes/admin.conf
kubectl apply -f https://raw.githubusercontent.com/polycube-network/polycube/src/components/k8s/standalone_etcd.yaml
kubectl apply -f https://raw.githubusercontent.com/polycube-network/polycube/src/components/k8s/pcn-k8s.yaml
kubectl apply -f https://raw.githubusercontent.com/polycube-network/polycube/master/src/components/k8s/standalone_etcd.yaml
kubectl apply -f https://raw.githubusercontent.com/polycube-network/polycube/master/src/components/k8s/pcn-k8s.yaml
kubeadm token create --print-join-command > /etc/kubeadm_join_cmd.sh
chmod +x /etc/kubeadm_join_cmd.sh
Expand Down

0 comments on commit 7671d79

Please sign in to comment.