-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathpetstore-upstream.yaml
34 lines (34 loc) · 951 Bytes
/
petstore-upstream.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
apiVersion: gloo.solo.io/v1
kind: Upstream
metadata:
name: default-petstore-8080
namespace: gloo-system
spec:
discoveryMetadata:
labels:
service: petstore
kube:
selector:
app: petstore
serviceName: petstore
serviceNamespace: default
servicePort: 8080
# ----- Health Check (a.k.a. active health checks) -------
healthChecks:
- healthyThreshold: 1
httpHealthCheck:
path: /api/pets
interval: 3s
timeout: 1s
unhealthyThreshold: 1
reuseConnection: false
noTrafficInterval: 5s # Start sending health checks after 5 seconds (default is 60)
# ----- Outlier Detection (a.k.a. passive health checks) ------
outlierDetection:
consecutive5xx: 3
maxEjectionPercent: 50
interval: 1s
circuitBreakers:
maxRetries: 10 # Default is 3
# ----- Help with consistency between the Kubernetes control-plane and the Gloo control-plane ------
ignoreHealthOnHostRemoval: true