Closed codex70 closed 2 years ago
Hi @codex70 this sounds like a duplicate issue based on the findings from https://github.com/hashicorp/consul-k8s/issues/1137 towards the end. I'll close this issue as the PR linked that issue should address this issue. Let us know if that is not the case!
Hi @david-yu , yes I think the issue was different, but the fix probably resolves both issues. Thanks as always for your help.
Community Note
Overview of the Issue
When trying to set up ElasticSearch using Operator with Consul connect inject, it is not possible to connect to the elastic search pod and Kibana fails to start properly. Also ElasticSearch cannot connect to its own internal server for license requests.
All requests end in an exit code 52.
If I do not install Consul on the cluster, ElasticSearch starts and works as expected.
With Consul installed I get an empty response from the the endpoint however I try to access the service. If I go directly into the elastic search pod "elastic-search-es-default-0" and curl the endpoint using localhost, or the pod's IP address, it works. If I try to curl the service's endpoint, or IP address it doesn't work.
If I go directly into the operator pod "elastic-operator-0", or kibana pod nothing works, including using the "elastic-search-es-default-0" pod's direct IP address.
This is the current setup:
From inside the "elastic-search-es-default-0" pod:
All other request from anywhere else respond with
curl: (52) Empty
reply from serverReproduction Steps
This is on a completely clean kubernetes install, loading as close to vanilla configurations for Consul and ElasticSearch as possible. ElasticSearch is installed using ElasticOperator as per the instructions. I am using Helm templates which are configured as follows:
Consul config:
Elastic:
Kibana:
Note: I've tried this with both connectInject:default set to true and false and the result is the same.
I'm also using the minimum security I can to get this working, with the idea being that I tighten up security rules once this is working.
Logs
Expected behavior
Systems install and work without connection issues.
Environment details
This cluster is in a cloud environment, but a completely clean new cluster. Nginx is used for ingress control to front ends, although this could be changed if there is a better solution with Consul.
Additional Context