This shows 4 instances of Elasticsearch running. After making sure that port 9200 is accessible for this cluster (e.g. using a firewall rule for Google Compute Engine) we can make queries via the service which will be fielded by the matching Elasticsearch pods.
This shows 4 instances of Elasticsearch running. After making sure that port 9200 is accessible for this cluster (e.g. using a firewall rule for Google Compute Engine) we can make queries via the service which will be fielded by the matching Elasticsearch pods.
```console
```console
$ curl 104.197.12.157:9200
$ curl 104.197.114.130:9200
{
{
"status" : 200,
"status" : 200,
"name" : "Warpath",
"name" : "Warpath",
...
@@ -231,7 +224,7 @@ $ curl 104.197.12.157:9200
...
@@ -231,7 +224,7 @@ $ curl 104.197.12.157:9200
},
},
"tagline" : "You Know, for Search"
"tagline" : "You Know, for Search"
}
}
$ curl 104.197.12.157:9200
$ curl 104.197.114.130:9200
{
{
"status" : 200,
"status" : 200,
"name" : "Callisto",
"name" : "Callisto",
...
@@ -250,7 +243,7 @@ $ curl 104.197.12.157:9200
...
@@ -250,7 +243,7 @@ $ curl 104.197.12.157:9200
We can query the nodes to confirm that an Elasticsearch cluster has been formed.
We can query the nodes to confirm that an Elasticsearch cluster has been formed.