-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathgrpc_error.yaml
More file actions
24 lines (23 loc) · 976 Bytes
/
grpc_error.yaml
File metadata and controls
24 lines (23 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Unless explicitly stated otherwise all files in this repository are licensed
# under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2026 Datadog, Inc.
# Warning! The grpc disruption is unique. You will need to follow the linked docs:
# https://github.com/DataDog/chaos-controller/blob/main/docs/grpc_disruption/instructions.md
apiVersion: chaos.datadoghq.com/v1beta1
kind: Disruption
metadata:
name: grpc-error
namespace: chaos-demo
spec:
level: pod
selector:
service: chaos-dogfood-server
count: 100%
grpc:
port: 50050
endpoints:
- endpoint: /chaosdogfood.ChaosDogfood/getCatalog # gRPC service endpoint to disrupt
error: UNAVAILABLE # gRPC error code to return instead computed response
- endpoint: /chaosdogfood.ChaosDogfood/order # gRPC service endpoint to disrupt
error: NOT_FOUND # gRPC error code to return instead computed response