apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
    nginx.ingress.kubernetes.io/rewrite-target: /$1
    nginx.ingress.kubernetes.io/default-backend: nginx
    kubernetes.io/ingress.global-static-ip-name: nl
  name: ingress
  namespace: production
spec:
  rules:
  - host: openbesluitvorming.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: search
            port:
              number: 80
  - host: www.openbesluitvorming.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: api.openraadsinformatie.nl
    http:
      paths:
      - path: /v1/elastic/(.*)
        pathType: Prefix
        backend:
          service:
            name: endpoints
            port:
              number: 8000
      - path: /(v1/.*)
        pathType: Prefix
        backend:
          service:
            name: api-serve
            port:
              number: 80
      - path: /v0/(.*)
        pathType: Prefix
        backend:
          service:
            name: openstate
            port:
              number: 80
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: api.openstateninformatie.nl
    http:
      paths:
      - path: /v1/elastic/(.*)
        pathType: Prefix
        backend:
          service:
            name: endpoints
            port:
              number: 8000
      - path: /(v1/.*)
        pathType: Prefix
        backend:
          service:
            name: api-serve
            port:
              number: 80
      - path: /v0/(.*)
        pathType: Prefix
        backend:
          service:
            name: openstate
            port:
              number: 80
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: api.openbesluitvorming.nl
    http:
      paths:
      - path: /v1/elastic/(.*)
        pathType: Prefix
        backend:
          service:
            name: endpoints
            port:
              number: 8000
      - path: /(v1/.*)
        pathType: Prefix
        backend:
          service:
            name: api-serve
            port:
              number: 80
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: zoek.openraadsinformatie.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: search
            port:
              number: 80
  - host: zoekv0.openraadsinformatie.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: zoek.openstateninformatie.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: docs.openraadsinformatie.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: docs.openstateninformatie.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: docs.openbesluitvorming.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: id.openraadsinformatie.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: api-serve
            port:
              number: 80
  - host: ori.argu.co
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: nginx
            port:
              number: 80
  - host: api.waaroverheid.nl
    http:
      paths:
      - path: /(.*)
        pathType: Prefix
        backend:
          service:
            name: loclinkvis
            port:
              number: 8080
  tls:
  - secretName: tls-certificate
