Traefik on EKS with CircuitBreaker

3/28/2019

I have deployed Traefik to eks.

I know that Traefik supports CircuitBreaker in general, but does it support in k8s?

-- Arsen
eks
kubernetes
traefik

1 Answer

3/29/2019

Yes, Traefik supports Circuit Breaker in kubernetes.

The circuit breaker expression is provided using the traefik.ingress.kubernetes.io/circuit-breaker-expression annotation provided as part of the backend Service definition.

You cab find this information in kubernetes docks

Also you can inspect service example from traefik user guide.

Example of service:

apiVersion: v1
kind: Service
metadata:
  name: wensleydale
  annotations:
    traefik.backend.circuitbreaker: "NetworkErrorRatio() > 0.5"
spec:
  ports:
  - name: http
    targetPort: 80
    port: 80
  selector:
    app: cheese
    task: wensleydale
-- VKR
Source: StackOverflow