diff options
author | Joseph Henry <josephjah@gmail.com> | 2016-08-17 18:03:34 -0700 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2016-08-17 18:03:34 -0700 |
commit | 0fd3afe2c8bfc2f12af0e1e546f36d03c6f0b2a6 (patch) | |
tree | 4c11ad77641ee60462c31d788ec67dc3c5462770 /doc | |
parent | 9dc507c9ae902190f628605553f9a6b781d7e18a (diff) | |
download | infinitytier-0fd3afe2c8bfc2f12af0e1e546f36d03c6f0b2a6.tar.gz infinitytier-0fd3afe2c8bfc2f12af0e1e546f36d03c6f0b2a6.zip |
examples files for kube int
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ext/kubernetes/entrypoint.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/ext/kubernetes/entrypoint.sh b/doc/ext/kubernetes/entrypoint.sh index 7509f3ce..8ec7312a 100644 --- a/doc/ext/kubernetes/entrypoint.sh +++ b/doc/ext/kubernetes/entrypoint.sh @@ -13,6 +13,9 @@ echo '*** Up and running at' $virtip4 ' on network: ' $nwid echo '*** Self-Authorizing to deployment network' nwconf=$(ls *.conf) nwid="${nwconf%.*}" +AUTHTOKEN="(cat /var/lib/zerotier-one/authtoken.secret)" + +grep -rl 'local_service_auth_token' ./ | xargs sed -i 's/local_service_auth_token/' $AUTHTOKEN '/g' ./zerotier-cli join $(nwid).conf ./zerotier-cli net-auth $(nwid) $(dev) |