Skip to content

Commit ab4b16e

Browse files
Vagrant: fix bad url and file name
Two small fixes for the k8s vagrant file: - the url of the yaml templates was missing the branch name - in the new releases of kubeadm the configuration file is at /var/lib/kubelet/kubeadm-flags.env Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
1 parent 2692c3f commit ab4b16e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/vagrant/pcn-k8s/Vagrantfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $configureBox = <<-SCRIPT
6262
# ip of this box
6363
IP_ADDR=`ifconfig enp0s8 | grep mask | awk '{print $2}'| cut -f2 -d:`
6464
# set node-ip
65-
sudo sed -i "/^[^#]*KUBELET_EXTRA_ARGS=/c\KUBELET_EXTRA_ARGS=--node-ip=$IP_ADDR" /etc/default/kubelet
65+
sudo sed -i "/^[^#]*KUBELET_EXTRA_ARGS=/c\KUBELET_EXTRA_ARGS=--node-ip=$IP_ADDR" /var/lib/kubelet/kubeadm-flags.env
6666
sudo systemctl restart kubelet
6767
SCRIPT
6868

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

0 commit comments

Comments
 (0)