Tyk ingress path based routing?

Hello,
Does tyk-ce not support path based routing?

I have an ingress yaml but only root path works, getting 404, other paths don’t work and there is no any error message in gw and operator logs.

Could you please advise?

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: httpbin-ingress
  annotations:
    kubernetes.io/ingress.class: tyk
    tyk.io/template: httpbin
spec:
  rules:
    - http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: nginxhello-default
                port:
                  number: 80
          - path: /red
            pathType: Prefix
            backend:
              service:
                name: nginxhello-red
                port:
                  number: 80
          - path: /blue
            pathType: Prefix
            backend:
              service:
                name: nginxhello-blue
                port:
                  number: 80
          - path: /httpbin
            pathType: Prefix
            backend:
              service:
                name: httpbin
                port:
                  number: 80

Reagrds

Hi @tirelibirefe, you seem to be missing a host in the spec if I am not wrong,

Hi @Olu
Regardging to https://github.com/TykTechnologies/tyk-operator/blob/master/config/samples/01-ingress/ingress.yaml I used only “pathonly” style scheme.

Reagrds

@Olu
I prepared another ingress file for you like below; nothing changed.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: httpbin-ingress
  annotations:
    kubernetes.io/ingress.class: tyk
    tyk.io/template: httpbin
spec:
  rules:
    - host: k8s-tyk-gatewayi-666af8eb07-125347277.eu-central-1.elb.amazonaws.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: httpbin
                port:
                  number: 8000
          - path: /red
            pathType: Prefix
            backend:
              service:
                name: red
                port:
                  number: 80
          - path: /blue
            pathType: Prefix
            backend:
              service:
                name: blue
                port:
                  number: 80```