diff options
author | Alex Auvolat <alex@adnab.me> | 2023-05-24 10:17:49 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-05-24 10:18:02 +0200 |
commit | c31de0e94fed68cb25dbf15fc5a95008351b3e19 (patch) | |
tree | 34355613da8462af5d991454c423daa93fc01f71 /cluster/prod/register_external_services.sh | |
parent | 7022b768e4efac52b87a4041000c875b9bedda61 (diff) | |
download | nixcfg-c31de0e94fed68cb25dbf15fc5a95008351b3e19.tar.gz nixcfg-c31de0e94fed68cb25dbf15fc5a95008351b3e19.zip |
tricot passthrough of external services at neptune
Diffstat (limited to 'cluster/prod/register_external_services.sh')
-rwxr-xr-x | cluster/prod/register_external_services.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/cluster/prod/register_external_services.sh b/cluster/prod/register_external_services.sh index 9c00216..3b6a35e 100755 --- a/cluster/prod/register_external_services.sh +++ b/cluster/prod/register_external_services.sh @@ -39,3 +39,42 @@ curl -vv -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: app } } EOF + +# Orsay (neptune): Alex's personnal stuff + +curl -vv -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: application/json" --data @- <<EOF +{ + "Datacenter": "prod", + "Node": "lindy", + "Address": "192.168.1.184", + "NodeMeta": { + "site": "neptune", + "cname_target": "neptune.site.deuxfleurs.fr." + }, + "Service": { + "Service": "lx-apimdev", + "Tags": ["tricot apimdev.adnab.me"], + "Address": "192.168.1.184", + "Port": 8910 + } +} +EOF + + +curl -vv -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: application/json" --data @- <<EOF +{ + "Datacenter": "prod", + "Node": "www.isomorphis.me", + "Address": "192.168.1.24", + "NodeMeta": { + "site": "neptune", + "cname_target": "neptune.site.deuxfleurs.fr." + }, + "Service": { + "Service": "isomorphis.me-web", + "Tags": ["tricot *.isomorphis.me"], + "Address": "192.168.1.24", + "Port": 5000 + } +} +EOF |