traefik/docs/content/middlewares/retry.md
Julien Salleyron d1d2611665 Handle TCP in the marathon provider
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
2019-04-15 18:22:07 +02:00

930 B

Retry

Retrying until it Succeeds {: .subtitle }

TODO: add schema

Retry to send request on attempt failure.

Configuration Examples

# Retry to send request 4 times
labels:
- "traefik.http.middlewares.test-retry.retry.attempts=4"
# Retry to send request 4 times
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: test-retry
spec:
  retry:
    attempts: 4
"labels": {
  "traefik.http.middlewares.test-retry.retry.attempts": "4"
}
# Retry to send request 4 times
labels:
- "traefik.http.middlewares.test-retry.retry.attempts=4"
# Retry to send request 4 times
[http.middlewares]
  [http.middlewares.test-retry.Retry]
     attempts = 4

Configuration Options

attempts

mandatory

The attempts option defines how many times to try sending the request.