Retries

Specifies the retry policy for the route where you can say for a specific error condition how many times to retry and for how long to try.

apiVersion: gateway.solo.io/v1
kind: VirtualService
metadata:
  name: 'default'
  namespace: 'gloo-system'
spec:
  virtualHost:
    domains:
    - '*'
    routes:
    - matcher:
        prefix: '/petstore'
      routeAction:
        single:
          upstream:
            name: 'default-petstore-8080'
            namespace: 'gloo-system'
      routePlugins:
        retries:
          retryOn: 'connect-failure'
          numRetries: 3
          perTryTimeout: '5s'