# Kubernetes ingress issue with routing to 2 react services

**URL:** <https://discuss.kubernetes.io/t/kubernetes-ingress-issue-with-routing-to-2-react-services/21258>\
**Category:** General Discussions\
**Created:** [September 12, 2022, 6:51am UTC](https://discuss.kubernetes.io/t/kubernetes-ingress-issue-with-routing-to-2-react-services/21258 "2022-09-12T06:51:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruwanvm](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/ruwanvm/32/10805_2.png) [@ruwanvm](https://discuss.kubernetes.io/u/ruwanvm)\
**Post date:** [September 12, 2022, 6:51am UTC](https://discuss.kubernetes.io/t/kubernetes-ingress-issue-with-routing-to-2-react-services/21258/1 "2022-09-12T06:51:27Z")

</div>

I have a static micro service (`static-content` service), which has following endpoints to simple HTML pages, using react

1. blog
2. about-us
3. map

I also have my Web server dynamic front (`react-nextjs-content` service) end also running on React/ nextJs.

I want to implement ingress rules to static micro service like below

`<host-url>/` should route to `index page` of the `static-content` service  
`<host-url>/blog` will route to `blog` endpoint of `static-content` service  
`<host-url>/about-us` will route to `about-us` endpoint of `static-content` service  
`<host-url>/map` will route to `map` endpoint of `static-content` service  
Every other endpoint shoud route to `react-nextjs-content` service

I am using following ingress implantation on EKS (K8 version 1.22), but it seems routing not achieved

```auto
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: myingress
  labels:
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
    - host: ruwanvm.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: static-content
                port:
                  number: 3000
          - path: /blog
            pathType: Prefix
            backend:
              service:
                name: static-content
                port:
                  number: 3000
          - path: /about-us
            pathType: Prefix
            backend:
              service:
                name: static-content
                port:
                  number: 3000
          - path: /map
            pathType: Prefix
            backend:
              service:
                name: static-content
                port:
                  number: 3000
          - path: /.+
            pathType: Prefix
            backend:
              service:
                name: react-nextjs-service
                port:
                  number: 3000

```

Can anyone support where I have not configured correctly

All services are exposed as clusterIP services and nginx ingress controller is set up to serve traffic through NLB on AWS
