gRPC frontend to backend on DeadlineExceededv2.6+
gRPC frontend to backend on DeadlineExceeded
Configuration
apiVersion: kuma.io/v1alpha1
kind: MeshRetry
metadata:
name: frontend-to-backend-retry-tcp
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: frontend
to:
- targetRef:
kind: MeshService
name: backend_kuma-demo_svc_8080
default:
tcp:
maxConnectAttempt: 5
apiVersion: kuma.io/v1alpha1
kind: MeshRetry
metadata:
name: frontend-to-backend-retry-tcp
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: frontend
to:
- targetRef:
kind: MeshService
name: backend
namespace: kuma-demo
sectionName: http
default:
tcp:
maxConnectAttempt: 5
type: MeshRetry
name: frontend-to-backend-retry-tcp
mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: frontend
to:
- targetRef:
kind: MeshService
name: backend
default:
tcp:
maxConnectAttempt: 5
type: MeshRetry
name: frontend-to-backend-retry-tcp
mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: frontend
to:
- targetRef:
kind: MeshService
name: backend
sectionName: http
default:
tcp:
maxConnectAttempt: 5
Please adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_retry" "frontend_to_backend_retry_tcp" {
provider = konnect-beta
type = "MeshRetry"
name = "frontend-to-backend-retry-tcp"
spec = {
target_ref = {
kind = "Dataplane"
labels = {
app = "frontend"
}
}
to = [
{
target_ref = {
kind = "MeshService"
name = "backend"
section_name = "http"
}
default = {
tcp = {
max_connect_attempt = "5"
}
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}