I need to route methods like PUT, PATCH, GET and POST in two different URLs, but I didn't find the best entry for my entry pod. I tried the follow annotations, but it doesn't worked.
My yaml:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: traefik
traefik.frontend.rule: PathPrefixStrip;Method:PUT,PATCH,POST
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
traefik.ingress.kubernetes.io/rewrite-target: /
name: services-ingress-xx-api-mock
namespace: develop-v1-0
spec:
rules:
- host: xx
http:
paths:
- backend:
serviceName: xx-api-mock
servicePort: http
path: xx/xxx
tls:
- secretName: mysecret
Is there im missing, missconfiguration, any clue, etc?
Can figure out how to route based on methods.
Thanks you all !
Leonardo.-