envoyproxy / envoyproxy/gateway

TCP Health Check is not working

Open
#5,506 2 comments 0 reactions 0 assignees View on GitHub
stale triage
Dominant language
Go
Stars
3k
Forks
864
Avg merge
2d 2h
Merged PRs (30d)
140

Description

*Description*:
I am trying to setup a TCP health check in BackendTrafficPolicy attached to a TCPRoute, a simple echo server is running as a backend service and prints the messages. TCPRoute is working fine, able to see the message in POD when routed via eg.
However I am not seeing any messages as part of healthcheck.

*Repro steps*:
```
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: BackendTrafficPolicy
metadata:
name: btp
namespace: default
spec:
targetRefs:
- group: gateway.networking.k8s.io
kind: HTTPRoute
name: backend
healthCheck:
passive:
baseEjectionTime: 1s
interval: 1s
maxEjectionPercent: 100
consecutive5XxErrors: 2
consecutiveGatewayErrors: 0
consecutiveLocalOriginFailures: 5
active:
timeout: "1s"
interval: "5s"
unhealthyThreshold: 3
healthyThreshold: 1
type: TCP
tcp: {}
```
```
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: TCPRoute
metadata:
name: backend-tcp1
spec:
parentRefs:
- name: eg
namespace: default
rules:
- backendRefs:
- group: ""
kind: Service
name: backend2
namespace: default
port: 3000
```

*Environment*:
Gateway : 1.3.1
Proxy: v1.33.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.