File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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\K UBELET_EXTRA_ARGS=--node-ip=$IP_ADDR" /etc/default /kubelet
65+ sudo sed -i "/^[^#]*KUBELET_EXTRA_ARGS=/c\K UBELET_EXTRA_ARGS=--node-ip=$IP_ADDR" /var/lib /kubelet/kubeadm-flags.env
6666 sudo systemctl restart kubelet
6767SCRIPT
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
You can’t perform that action at this time.
0 commit comments