Skip to content
Snippets Groups Projects
Commit 8b05ea08 authored by Sara Stentvedt Luggenes's avatar Sara Stentvedt Luggenes
Browse files

week 15

parent 63f4eb72
No related branches found
No related tags found
No related merge requests found
......@@ -392,4 +392,17 @@ docker run -d -v /opt/consul:/consul/data --name=consul --net=host -e 'CONSUL_LO
curl -X PUT -d '{"ID": "SERVER3.AETA", "Name": "bookface", "Address": "192.168.132.39", "Port": 80 }' http://localhost:8500/v1/agent/service/register
```
# på en hvilkårlig server
dig @192.168.128.23 bookface.service.aeta.dcsg2003. ANY
# slår opp på egen infrastruktur, hvilkårlig server:
dig @192.168.128.23 server1.node.aeta.dcsg2003. ANY
# task 6
```
curl -X PUT -d '{"ID": "SERVER.AETAlocal", "Name": "bookfacelocal", "Port": 80 }' http://127.0.0.1:8500/v1/agent/service/register
curl -X PUT -d '{"ID": "SERVER2.AETAlocal", "Name": "bookfacelocal", "Port": 80 }' http://127.0.0.1:8500/v1/agent/service/register
curl -X PUT -d '{"ID": "SERVER3.AETAlocal", "Name": "bookfacelocal", "Port": 80 }' http://127.0.0.1:8500/v1/agent/service/register
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment