Closed serboctor closed 5 years ago
clusterToken @3 :Text; # cluster token
I think this field can be generated and know only by the service itself. no need to expose it
Verified
In [1]: from jumpscale import j
In [2]: robot = j.clients.zrobot.robots['webgt']
In [5]: args = {
...: 'nics': [{'name': 'ten', 'type': 'zerotier', 'ztClient':'zt', 'id': 'abfd31bd476c3c18'}],
...: 'farmerIyoOrg': 'kristof-farm',
...: 'nrEtcds': 2,
...: 'traefikNode': 'ac1f6b27224c',
...: 'corednsNode': 'ac1f6b457488'
...: }
...:
...:
In [6]: wg = robot.services.create('github.com/threefoldtech/0-templates/web_gateway/0.0.1', 'wg', data=args)
...:
In [8]: wg.schedule_action('install').wait(die=True)
Out[8]: install
In [11]: wg.schedule_action('start')
Out[11]: start
In [12]: wg.schedule_action('stop')
Out[12]: stop
In [13]: wg.schedule_action('uninstall')
Out[13]: uninstall
0-templates:
commit 3754868bed74b768d1e559a2e3e1cd052fd3b717
Merge: b881f6f cb5acab
Author: Christophe de Carvalho Pereira Martins <christophe.dcpm@gmail.com>
Date: Mon Aug 6 12:57:37 2018 +0200
Merge branch 'development'
We need a higher-level template to manage etcd_cluster, traefik and coredns. It will be responsible for creating all three services, feeding traefik and coredns info about the etcd connections info since they won't have access to the etcd_cluster services. Coredns and traefik templates will need to be modified to save etcd password and endpoints in their schema instead of etcd service name.
web_gatewat Schema:
Actions: