File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ $configureBox = <<-SCRIPT
62
62
# ip of this box
63
63
IP_ADDR=`ifconfig enp0s8 | grep mask | awk '{print $2}'| cut -f2 -d:`
64
64
# 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
66
66
sudo systemctl restart kubelet
67
67
SCRIPT
68
68
@@ -82,8 +82,8 @@ $configureMaster = <<-SCRIPT
82
82
83
83
# install PCN-K8S-CNI pod network addon
84
84
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
87
87
88
88
kubeadm token create --print-join-command > /etc/kubeadm_join_cmd.sh
89
89
chmod +x /etc/kubeadm_join_cmd.sh
You can’t perform that action at this time.
0 commit comments