hashicorp / hashicorp/consul

Envoy proxy doesn't start proxy on start

Open
#11,410 1 comment 0 reactions 0 assignees View on GitHub
theme/envoy/xds type/question waiting-reply
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
1d 18h
Merged PRs (30d)
39

Description

I have a consul architecture based on :
- 3 servers running on VMs
- 1 client per kubernetes node ( GKE )

So I used the chart helm to deploy the clients + the connect injector. Everything went well during deployment and injection. I don't have any feedback errors.

On the other hand, when I look at the status of my service on Consul it appears unhealthy because of the Proxy Public Listener health check.
This one indicates a refused connection on port 20000 of my pod.

So I went to launch a `netstat -tulpn | grep LISTEN` on my pod and I see the following result:

![](https://user-images.githubusercontent.com/76174192/138718955-1bf9023e-1962-4784-bdbb-19b236bd48ec.png)

Indeed nothing is launched on the port 20000. When I look at the send logs, no problem is reported.

Has anyone already experienced this problem, and if so, do you have any idea what could be the problem?

Here is the configuration of my service:

```yaml
podAnnotations:
consul.hashicorp.com/connect-inject: "true"
consul.hashicorp.com/connect-service: "k8s_nginx"
consul.hashicorp.com/envoy-extra-args: "--log-level debug --disable-hot-restart"
```

Contributor guide

Open the contributing guide

Research direction

Start with the Helm deployment and the podAnnotations shown in the issue, then compare the pod's netstat output, Consul health status, and Envoy logs around port 20000. Done means identifying why the proxy public listener is not started and confirming that the pod exposes the listener and passes its health check.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes
Domain
devops, infrastructure, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.