
- binaries and scripts updated to use calico networking Co-Authored-By: ddovbii <ddovbii@mirantis.com> Change-Id: I3187b9cc171aa15caa4912a665c642ab057b4eae
21 lines
579 B
Bash
21 lines
579 B
Bash
#!/bin/bash
|
|
|
|
# $1 - IP
|
|
|
|
# TODO(asilenlov): we need to refactor this script
|
|
|
|
# Install Calico on master
|
|
mkdir -p /opt/cni/bin
|
|
cp /opt/copy/cni/bin/* /opt/cni/bin/
|
|
ln -s /opt/bin/calicoctl /usr/bin/calicoctl
|
|
docker load < /opt/copy/calico-node.tar
|
|
|
|
sed -i.bak "s/%%MASTER_IP%%/$1/g" environ/network-environment
|
|
sed -i.bak "s/%%IP%%/$1/g" environ/network-environment
|
|
cp -f environ/network-environment /etc
|
|
|
|
sed -i.bak "s/%%IP%%/$1/g" systemd/calico-node.service
|
|
cp -f systemd/calico-node.service /etc/systemd/system/
|
|
systemctl enable calico-node.service
|
|
|
|
systemctl start calico-node |