mirror of https://github.com/fluxcd/flagger.git
Add timeout and reties example to docs
This commit is contained in:
parent
bd35a3f61c
commit
a23e4f1d2a
|
@ -8,8 +8,8 @@ Adds support for custom metric checks, HTTP timeouts and HTTP retries
|
||||||
|
|
||||||
#### Features
|
#### Features
|
||||||
|
|
||||||
- Allow custom promql queries in the canary analysis spec [##60](https://github.com/stefanprodan/flagger/pull/#60)
|
- Allow custom promql queries in the canary analysis spec [#60](https://github.com/stefanprodan/flagger/pull/60)
|
||||||
- Add HTTP timeout and retries to canary service spec [##62](https://github.com/stefanprodan/flagger/pull/#62)
|
- Add HTTP timeout and retries to canary service spec [#62](https://github.com/stefanprodan/flagger/pull/62)
|
||||||
|
|
||||||
## 0.6.0 (2019-02-25)
|
## 0.6.0 (2019-02-25)
|
||||||
|
|
||||||
|
|
|
@ -8,13 +8,17 @@ spec:
|
||||||
- public-gateway.istio-system.svc.cluster.local
|
- public-gateway.istio-system.svc.cluster.local
|
||||||
- mesh
|
- mesh
|
||||||
hosts:
|
hosts:
|
||||||
- podinfo.iowa.weavedx.com
|
- app.istio.weavedx.com
|
||||||
- podinfo
|
- podinfo
|
||||||
http:
|
http:
|
||||||
- match:
|
- match:
|
||||||
- headers:
|
- headers:
|
||||||
user-agent:
|
user-agent:
|
||||||
regex: ^(?!.*Chrome)(?=.*\bSafari\b).*$
|
regex: ^(?!.*Chrome)(?=.*\bSafari\b).*$
|
||||||
|
uri:
|
||||||
|
prefix: "/version/"
|
||||||
|
rewrite:
|
||||||
|
uri: /api/info
|
||||||
route:
|
route:
|
||||||
- destination:
|
- destination:
|
||||||
host: podinfo-primary
|
host: podinfo-primary
|
||||||
|
@ -26,7 +30,12 @@ spec:
|
||||||
port:
|
port:
|
||||||
number: 9898
|
number: 9898
|
||||||
weight: 100
|
weight: 100
|
||||||
- route:
|
- match:
|
||||||
|
- uri:
|
||||||
|
prefix: "/version/"
|
||||||
|
rewrite:
|
||||||
|
uri: /api/info
|
||||||
|
route:
|
||||||
- destination:
|
- destination:
|
||||||
host: podinfo-primary
|
host: podinfo-primary
|
||||||
port:
|
port:
|
||||||
|
|
|
@ -131,13 +131,19 @@ metadata:
|
||||||
# Istio virtual service host names (optional)
|
# Istio virtual service host names (optional)
|
||||||
hosts:
|
hosts:
|
||||||
- frontend.example.com
|
- frontend.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: /
|
||||||
|
# timeout for HTTP requests (optional)
|
||||||
|
timeout: 5s
|
||||||
|
# retry policy when a HTTP request fails (optional)
|
||||||
|
retries:
|
||||||
|
attempts: 3
|
||||||
|
perTryTimeout: 3s
|
||||||
```
|
```
|
||||||
|
|
||||||
For the above spec Flagger will generate the following virtual service:
|
For the above spec Flagger will generate the following virtual service:
|
||||||
|
@ -168,6 +174,10 @@ spec:
|
||||||
prefix: /
|
prefix: /
|
||||||
rewrite:
|
rewrite:
|
||||||
uri: /
|
uri: /
|
||||||
|
timeout: 5s
|
||||||
|
retries:
|
||||||
|
attempts: 3
|
||||||
|
perTryTimeout: 3s
|
||||||
route:
|
route:
|
||||||
- destination:
|
- destination:
|
||||||
host: frontend-primary
|
host: frontend-primary
|
||||||
|
|
Loading…
Reference in New Issue