Add timeout and retries example to docs

This commit is contained in:
stefanprodan 2019-02-28 00:02:48 +02:00
parent 44d7e96e96
commit 6db8b96f72
2 changed files with 19 additions and 11 deletions

View File

@ -89,25 +89,27 @@ spec:
apiVersion: autoscaling/v2beta1 apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler kind: HorizontalPodAutoscaler
name: podinfo name: podinfo
service:
# container port
port: 9898
# Istio gateways (optional) # Istio gateways (optional)
gateways: gateways:
- public-gateway.istio-system.svc.cluster.local - public-gateway.istio-system.svc.cluster.local
# Istio virtual service host names (optional) # Istio virtual service host names (optional)
hosts: hosts:
- podinfo.example.com - podinfo.example.com
# Istio virtual service HTTP match conditions (optional) # HTTP match conditions (optional)
match: match:
- uri: - uri:
prefix: / prefix: /
# Istio virtual service HTTP rewrite (optional) # HTTP rewrite (optional)
rewrite: rewrite:
uri: / uri: /
# for emergency cases when you want to ship changes # timeout for HTTP requests (optional)
# in production without analysing the canary (default false) timeout: 5s
# retry policy when a HTTP request fails (optional)
retries:
attempts: 3
# promote the canary without analysing it (default false)
skipAnalysis: false skipAnalysis: false
# define the canary analysis timing and KPIs
canaryAnalysis: canaryAnalysis:
# schedule interval (default 60s) # schedule interval (default 60s)
interval: 1m interval: 1m

View File

@ -39,16 +39,22 @@ spec:
# Istio virtual service host names (optional) # Istio virtual service host names (optional)
hosts: hosts:
- podinfo.example.com - podinfo.example.com
# Istio virtual service HTTP match conditions (optional) # HTTP match conditions (optional)
match: match:
- uri: - uri:
prefix: / prefix: /
# Istio virtual service HTTP rewrite (optional) # HTTP rewrite (optional)
rewrite: rewrite:
uri: / uri: /
# for emergency cases when you want to ship changes # timeout for HTTP requests (optional)
# in production without analysing the canary timeout: 5s
# retry policy when a HTTP request fails (optional)
retries:
attempts: 3
perTryTimeout: 3s
# promote the canary without analysing it (default false)
skipAnalysis: false skipAnalysis: false
# define the canary analysis timing and KPIs
canaryAnalysis: canaryAnalysis:
# schedule interval (default 60s) # schedule interval (default 60s)
interval: 1m interval: 1m