# Ingress or Nginx Reverse Proxy

**URL:** <https://forum.rasa.com/t/ingress-or-nginx-reverse-proxy/46474>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [August 3, 2021, 11:57am UTC](https://forum.rasa.com/t/ingress-or-nginx-reverse-proxy/46474 "2021-08-03T11:57:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiorie](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@hiorie](https://forum.rasa.com/u/hiorie)\
**Post date:** [August 3, 2021, 11:57am UTC](https://forum.rasa.com/t/ingress-or-nginx-reverse-proxy/46474/1 "2021-08-03T11:57:43Z")

</div>

Hi and Good Day,

Im now trying to bind a domain to my Rasa X deployment ( Helm Chart - mirok8s ) Googling here and there it seems I need to use Ingress as I would go for ssl.

However as for my current deployment the external IP I’ve pointed to Nginx service, which I’m currently accessing my rasa-x through http://:8000

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/0/9/091688cfafffb02abf8360a039931d715b3b79b9.png)

my yml values for nginx as below

```
apiVersion: v1
kind: Service
metadata:
  annotations:
    meta.helm.sh/release-name: uov10
    meta.helm.sh/release-namespace: umone
  creationTimestamp: "2021-06-30T12:57:43Z"
  labels:
    app.kubernetes.io/component: nginx
    app.kubernetes.io/instance: uov10
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: rasa-x
    app.kubernetes.io/version: 0.40.1
    helm.sh/chart: rasa-x-1.16.0
  name: uov10-rasa-x-nginx
  namespace: umone
  resourceVersion: "155600"
  selfLink: /api/v1/namespaces/umone/services/uov10-rasa-x-nginx
  uid: 3ab95787-dad6-409d-b071-dd127fce8eb6
spec:
  clusterIP: 10.152.183.165
  clusterIPs:
  - 10.152.183.165
  externalIPs:
  - 10.240.5.9
  externalTrafficPolicy: Cluster
  ipFamilies:
  - IPv4
  ipFamilyPolicy: SingleStack
  ports:
  - name: http
    nodePort: 32530
    port: 8000
    protocol: TCP
    targetPort: 8080
  selector:
    app.kubernetes.io/component: nginx
    app.kubernetes.io/instance: uov10
    app.kubernetes.io/name: rasa-x
  sessionAffinity: None
  type: LoadBalancer
status:
  loadBalancer: {}
```

while the ingress as below

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/2/1224bcec2e9a7bbfe06566fa1c22b055a2588ae8.png)

yml values for my ingress

```
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    meta.helm.sh/release-name: uov10
    meta.helm.sh/release-namespace: umone
  creationTimestamp: "2021-06-30T12:57:43Z"
  generation: 1
  labels:
    app.kubernetes.io/instance: uov10
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: rasa-x
    app.kubernetes.io/version: 0.40.1
    helm.sh/chart: rasa-x-1.16.0
  name: uov10-rasa-x
  namespace: umone
  resourceVersion: "155640"
  selfLink: /apis/networking.k8s.io/v1/namespaces/umone/ingresses/uov10-rasa-x
  uid: 3a8ecaa1-0c07-4ff1-bed0-864e41c5ac6c
spec:
  rules:
  - host: myrasa.com
    http:
      paths:
      - backend:
          service:
            name: uov10-rasa-x-nginx
            port:
              number: 8000
        path: /
        pathType: ImplementationSpecific
status:
  loadBalancer: {}
```

By pointing [myrasa.com](http://myrasa.com) to my machine /etc/hosts file Im hoping able to access my rasa-x via [http://myrasa.com](http://myrasa.com) instead of http://:8000

Anyone can advice how to get this working. My rasa x request later will be served by a load balancer which provide proxy ssl, which I planned to get the ingress working as point of communication to the load balancer.

Thank YouPreformatted text

---

<div class="post-metadata">

**Author:** ![desmarchris](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/desmarchris/32/12277_2.png) [@desmarchris](https://forum.rasa.com/u/desmarchris)\
**Post date:** [August 5, 2021, 1:50pm UTC](https://forum.rasa.com/t/ingress-or-nginx-reverse-proxy/46474/2 "2021-08-05T13:50:02Z")

</div>

hey @hiorie, can you try turning off nginx and only use Ingress with your actual host name? you need to have only one of ingress or nginx turned on.

---

<div class="post-metadata">

**Author:** ![hiorie](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@hiorie](https://forum.rasa.com/u/hiorie)\
**Post date:** [August 6, 2021, 12:22am UTC](https://forum.rasa.com/t/ingress-or-nginx-reverse-proxy/46474/3 "2021-08-06T00:22:31Z")

</div>

Hi Desmarchris,

Thank you for the reply. How can I do that ? I planned to use ingress as I would like to setup https using ingress later. So I want to off the nginx.

And now I getting more confuse as my ingress is in another namespace and my rasa x is in another namespace. The ingress is default enable when I issue mickrok8s ingress enable.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/a/6/a6e52cec067f09577dd5f6e77b8aa24ed1adcf6d.png)

Thank you for your kind assistant

---

<div class="post-metadata">

**Author:** ![desmarchris](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/desmarchris/32/12277_2.png) [@desmarchris](https://forum.rasa.com/u/desmarchris)\
**Post date:** [August 6, 2021, 1:53pm UTC](https://forum.rasa.com/t/ingress-or-nginx-reverse-proxy/46474/4 "2021-08-06T13:53:46Z")

</div>

turn off nginx in your values override file setting this to false: [rasa-x-helm/values.yaml at main · RasaHQ/rasa-x-helm · GitHub](https://github.com/RasaHQ/rasa-x-helm/blob/main/charts/rasa-x/values.yaml#L510)

so you’ll have:

```auto
nginx:
  enabled: false

```

the ingress resource you see in the other namespace should be fine. That’s just the controller enabling you to create the ingress routes. once you turn off nginx and redeploy, you should see 4 routes show up when you run `kubectl get ingress` in your rasa namespace

---

<div class="post-metadata">

**Author:** ![hiorie](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@hiorie](https://forum.rasa.com/u/hiorie)\
**Post date:** [October 1, 2021, 8:31am UTC](https://forum.rasa.com/t/ingress-or-nginx-reverse-proxy/46474/5 "2021-10-01T08:31:03Z")

</div>

Hi Desmarchris,

Sorry for the late reply, got stuck with another project. I have disabled the nginx service as your advice

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/8/38ead29d4c2eedc311db041202ada811f1ddc4b8.png)there is no nginx service

hovewer I only have 3 routes in ingress

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/b/a/ba4c1de6650df623d1772b41278c07b5af7f46f0.png)

and when I accessed [rasa-x.example.com](http://rasa-x.example.com) ( which I pointed to my my pc localhost ) I got nginx error

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/a/5/a56aeca77fece7346ce2211f9236f08f2f1fe09d.png)

Your kind advice is much appreciated.

Thank You

---

<div class="post-metadata">

**Author:** ![hiorie](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@hiorie](https://forum.rasa.com/u/hiorie)\
**Post date:** [October 25, 2021, 2:58am UTC](https://forum.rasa.com/t/ingress-or-nginx-reverse-proxy/46474/6 "2021-10-25T02:58:18Z")

</div>

Hi All,

I’ve enable metallb and traefik, what should I do next to expose my rasa x to outside world.

Below is my cluster service and ingress. Any help and guide is much appreciated.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/5/157b3a746df9c2b1b57af463896fd15b89bfd515.png)

Thank You
