mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
examples files for kube int
This commit is contained in:
parent
5d37eabb59
commit
9dc507c9ae
1 changed files with 6 additions and 2 deletions
|
@ -6,11 +6,15 @@ virtip4=""
|
||||||
while [ -z "$virtip4" ]; do
|
while [ -z "$virtip4" ]; do
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
virtip4=`/zerotier-cli listnetworks | grep -F $nwid | cut -d ' ' -f 9 | sed 's/,/\n/g' | grep -F '.' | cut -d / -f 1`
|
virtip4=`/zerotier-cli listnetworks | grep -F $nwid | cut -d ' ' -f 9 | sed 's/,/\n/g' | grep -F '.' | cut -d / -f 1`
|
||||||
|
dev=`/zerotier-cli listnetworks | grep -F "" | cut -d ' ' -f 8 | cut -d "_" -f 2 | sed "s/^<dev>//" | tr '\n' '\0'`
|
||||||
done
|
done
|
||||||
echo '*** Up and running at' $virtip4 ' on network: ' $nwid
|
echo '*** Up and running at' $virtip4 ' on network: ' $nwid
|
||||||
|
|
||||||
echo '*** Self-Authorizing to deployment network'
|
echo '*** Self-Authorizing to deployment network'
|
||||||
./zerotier-cli join $(NWID).conf
|
nwconf=$(ls *.conf)
|
||||||
./zerotier-cli net-auth $(NWID) $(DEVID)
|
nwid="${nwconf%.*}"
|
||||||
|
|
||||||
|
./zerotier-cli join $(nwid).conf
|
||||||
|
./zerotier-cli net-auth $(nwid) $(dev)
|
||||||
|
|
||||||
# node server.js
|
# node server.js
|
Loading…
Add table
Reference in a new issue