I need to route PUT,POST,PATCH to a different backend service than GET. I dont see much documentation on the subject.
Can someone point me in the right direction?
My yaml is pretty generic:
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
namespace: development
name: test-service
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/frontend-entry-points: "http,https"
traefik.ingress.kubernetes.io/rule-type: "PathPrefixStrip"
traefik.ingress.kubernetes.io/rewrite-target: "/"
spec:
rules:
- host: development.example.com
http:
paths:
- path: /api/test-service
backend:
serviceName: test-service-get
servicePort: http
- path: /api/test-service
backend:
serviceName: test-service-post
servicePort: http