apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    k8gb.io/strategy: failover
    k8gb.io/primary-geotag: "eu"
    k8gb.io/dns-ttl-seconds: "5"
    k8gb.io/splitbrain-threshold-seconds: "600"
  name: test-gslb-annotation-failover
spec:
  ingressClassName: nginx
  rules:
  - host: ingress-failover-notfound.cloud.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: non-existing-app
            port:
              name: http
  - host: ingress-failover-unhealthy.cloud.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: unhealthy-app
            port:
              name: http
  - host: ingress-failover.cloud.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: frontend-podinfo
            port:
              name: http
