# Route with Kubernetes Ingress by HTTP Method

**URL:** <https://community.traefik.io/t/route-with-kubernetes-ingress-by-http-method/4642>\
**Category:** Traefik v1\
**Tags:** kubernetes-ingress\
**Created:** [February 26, 2020, 7:49pm UTC](https://community.traefik.io/t/route-with-kubernetes-ingress-by-http-method/4642 "2020-02-26T19:49:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezdan](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@ezdan](https://community.traefik.io/u/ezdan)\
**Post date:** [February 26, 2020, 7:49pm UTC](https://community.traefik.io/t/route-with-kubernetes-ingress-by-http-method/4642/1 "2020-02-26T19:49:20Z")

</div>

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:

```auto
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

```
