# Dgraph's ratel and alpha can be ingress with prefix?

**URL:** <https://discuss.dgraph.io/t/dgraphs-ratel-and-alpha-can-be-ingress-with-prefix/10973>\
**Category:** Ratel\
**Tags:** kind:question, dgraph, ratel\
**Created:** [October 15, 2020, 9:57am UTC](https://discuss.dgraph.io/t/dgraphs-ratel-and-alpha-can-be-ingress-with-prefix/10973 "2020-10-15T09:57:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaisawind](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/kaisawind/32/4224_2.png) [@kaisawind](https://discuss.dgraph.io/u/kaisawind)\
**Post date:** [October 15, 2020, 9:57am UTC](https://discuss.dgraph.io/t/dgraphs-ratel-and-alpha-can-be-ingress-with-prefix/10973/1 "2020-10-15T09:57:38Z")

</div>

I want to deploy dgraph with k8s and ingress ratel and alpha with some prefix.  
But the default ingress’s path is `/`.  
Can i do this？

I defined the following configuration file, but It does not work.  
Then [Launch Offline] button is always `https://192.168.1.118:30443/?local`.

```auto
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: helmet-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$2
    nginx.ingress.kubernetes.io/proxy-redirect-from: /
    nginx.ingress.kubernetes.io/proxy-redirect-to: $location_path/
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/service-upstream: "true"
    nginx.ingress.kubernetes.io/proxy-body-size: "0"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
spec:
  rules:
  - http:
      paths:
      - path: /helmet/ratel(/|$)(.*)
        backend:
          serviceName: dgraph-ratel
          servicePort: 80
      - path: /helmet/alpha(/|$)(.*)
        backend:
          serviceName: dgraph-alpha
          servicePort: 8080

```

---

<div class="post-metadata">

**Author:** ![kaisawind](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/kaisawind/32/4224_2.png) [@kaisawind](https://discuss.dgraph.io/u/kaisawind)\
**Post date:** [October 15, 2020, 10:52am UTC](https://discuss.dgraph.io/t/dgraphs-ratel-and-alpha-can-be-ingress-with-prefix/10973/2 "2020-10-15T10:52:56Z")

</div>

I access dgraph with [https://192.168.1.118:30443/helmet/ratel?local](https://192.168.1.118:30443/helmet/ratel?local) by manual.  
It works very well.
