Incorrect HTTP method for uri 405 when trying to connect to ElasticSearch using Istio DNS name

5/27/2020

When I'm trying to connect to elasticsearch with the pod dns, I'm getting the response. But using istio dns, 405 error is getting.

http://elasticsearch.namespace.cluster.local/indexname

{
  "indexname": {
     "aliases": {},
     "mappings": {
       ...
     },
     "settings": {
       "index": {
         ...
       }
     }
  }
}

https://domainname/elasticsearch/indexname

{
  "error": "Incorrect HTTP method for uri [//indexname] and method [GET], allowed: [POST]",
  "status": 405
}

Home url is working for both dns http://elasticsearch.namespace.cluster.local

{
  "name": "....",
  "cluster_name": "....",
  "cluster_uuid": "....",
  "version": {
    ....
  },
  "tagline": "You Know, for Search"
}

https://domainname/elasticsearch/indexname

{
  "name": "....",
  "cluster_name": "....",
  "cluster_uuid": "....",
  "version": {
    ....
  },
  "tagline": "You Know, for Search"
}
-- Jameesh Nazeera
elasticsearch
google-kubernetes-engine
istio

0 Answers