mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 10:46:33 +00:00
examples files for kube int
This commit is contained in:
parent
1833c61556
commit
c84ce76c59
18
doc/ext/kubernetes/.zerotierCliSettings
Normal file
18
doc/ext/kubernetes/.zerotierCliSettings
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"configVersion": 1,
|
||||
"defaultCentral": "@my.zerotier.com",
|
||||
"defaultController": "@my.zerotier.com",
|
||||
"defaultOne": "@local",
|
||||
"things": {
|
||||
"local": {
|
||||
"auth": "XXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
"type": "one",
|
||||
"url": "http://127.0.0.1:9993/"
|
||||
},
|
||||
"my.zerotier.com": {
|
||||
"auth": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
"type": "central",
|
||||
"url": "https://my.zerotier.com/"
|
||||
},
|
||||
}
|
||||
}
|
8
doc/ext/kubernetes/Dockerfile
Normal file
8
doc/ext/kubernetes/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM node:4.4
|
||||
EXPOSE 8080
|
||||
COPY server.js .
|
||||
COPY zerotier .
|
||||
COPY zerotier-cli .
|
||||
COPY entrypoint.sh .
|
||||
COPY .zerotierCliSettings <settings path>?>
|
||||
CMD node server.js
|
3
doc/ext/kubernetes/entrypoint.sh
Normal file
3
doc/ext/kubernetes/entrypoint.sh
Normal file
@ -0,0 +1,3 @@
|
||||
./zerotier
|
||||
zerotier-cli join $(NWID).conf
|
||||
zerotier-cli net-auth $(NWID) $(DEVID)
|
8
doc/ext/kubernetes/server.js
Normal file
8
doc/ext/kubernetes/server.js
Normal file
@ -0,0 +1,8 @@
|
||||
var http = require('http');
|
||||
var handleRequest = function(request, response) {
|
||||
console.log('Received request for URL: ' + request.url);
|
||||
response.writeHead(200);
|
||||
response.end('Hello World!');
|
||||
};
|
||||
var www = http.createServer(handleRequest);
|
||||
www.listen(8080);
|
@ -1,7 +1,7 @@
|
||||
Kubernetes + ZeroTier
|
||||
====
|
||||
|
||||
A self-authorizing Kubernetes deployment on a ZeroTier private network.
|
||||
A self-authorizing Kubernetes cluster deployment over a private ZeroTier network.
|
||||
|
||||
This is a quick tutorial for setting up a Kubernetes deployment which can self-authorize each new replica onto your private ZeroTier network with no additional configuration needed when you scale. The Kubernetes-specific instructions and content is based on the [hellonode](http://kubernetes.io/docs/hellonode/) tutorial. All of the files discussed below can be found [here]();
|
||||
|
||||
@ -107,4 +107,4 @@ zerotier-cli net-auth $(NWID) $(DEVID)
|
||||
|
||||
## Verify
|
||||
|
||||
Now, after a minute or so you can use `zerotier-cli net-members <nwid>` to show all of your VM instances on your ZeroTier deployment network. If you haven't [configured your local CLI](), you can simply log into [my.zerotier.com](https://my.zerotier.com), go to *Networks -> nwid*.
|
||||
Now, after a minute or so you can use `zerotier-cli net-members <nwid>` to show all of your VM instances on your ZeroTier deployment network. If you haven't [configured your local CLI](https://github.com/zerotier/ZeroTierOne/tree/dev/cli), you can simply log into [my.zerotier.com](https://my.zerotier.com), go to *Networks -> nwid* to check that your VMs are indeed members of your private network.
|
Loading…
Reference in New Issue
Block a user