diff options
author | Adrien <adrien@luxeylab.net> | 2023-03-15 18:55:09 +0100 |
---|---|---|
committer | Adrien <adrien@luxeylab.net> | 2023-03-15 18:55:09 +0100 |
commit | e4065dade8c63f66722ece3e08d1dc2f6fcdab8f (patch) | |
tree | bdb6aaef2167ccd809e1311ee5c866ff220a3eec | |
parent | f7be968531a61bc9c08c03cda416784dc70ae546 (diff) | |
download | nixcfg-e4065dade8c63f66722ece3e08d1dc2f6fcdab8f.tar.gz nixcfg-e4065dade8c63f66722ece3e08d1dc2f6fcdab8f.zip |
added Consul Registration of personal services (for Adrien's personal stuff)
-rw-r--r-- | cluster/prod/register_personal_services.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cluster/prod/register_personal_services.sh b/cluster/prod/register_personal_services.sh new file mode 100644 index 0000000..6ea8dbe --- /dev/null +++ b/cluster/prod/register_personal_services.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + + +curl -vv -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: application/json" --data @- <<EOF +{ + "Datacenter": "prod", + "Node": "spoutnik", + "Address": "192.168.1.60", + "NodeMeta": { "somekey": "bidon" }, + "Service": { + "Service": "adrien-nginx", + "Tags": ["tricot-https *.luxeylab.net"], + "Address": "192.168.1.60", + "Port": 443 + } +} +EOF |