# How to access Keycloak with ingress path url

**URL:** <https://forum.keycloak.org/t/how-to-access-keycloak-with-ingress-path-url/9590>\
**Category:** Miscellanaeous\
**Created:** [June 15, 2021, 5:05am UTC](https://forum.keycloak.org/t/how-to-access-keycloak-with-ingress-path-url/9590 "2021-06-15T05:05:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![svd](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@svd](https://forum.keycloak.org/u/svd)\
**Post date:** [June 15, 2021, 5:05am UTC](https://forum.keycloak.org/t/how-to-access-keycloak-with-ingress-path-url/9590/1 "2021-06-15T05:05:47Z")

</div>

Hi, I have deployed keycloak on kubernetes cluster, I am able to access keycloak with cluster-ip of pod, but with ingress path url, it is giving me 503 service gateway error. Can someone help with this. I have set `PROXY_ADDRESS_FORWARDING` to true in my deployment.yaml file, but still it didn’t work for me.

Ingress.yaml

```auto
---
  apiVersion: "networking.k8s.io/v1beta1"
  kind: "Ingress"
  metadata: 
    name: "keycloak-development-ingress"
    namespace: "development"
    annotations: 
            nginx.ingress.kubernetes.io/rewrite-target: "/$1"
  spec: 
    rules: 
      - 
        host: "my-server.com"
        http: 
          paths: 
            - 
              backend: 
                serviceName: "keycloak-development"
                servicePort: 53582
              path: "/keycloak-development/(.*)"

```

service.yaml

```auto
---
  apiVersion: "v1"
  kind: "Service"
  metadata: 
    name: "keycloak-development"
    namespace: "development"
    labels: 
      app: "keycloak-development"
  spec: 
    ports: 
      - 
        port: 53582
        targetPort: 8080
    selector: 
      app: "keycloak-development"

```

I am able to access keycloak main page with [https://my-server.com/auth/](https://my-server.com/auth/), but for the admin console the page is not loading.

---

<div class="post-metadata">

**Author:** ![Leo](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@Leo](https://forum.keycloak.org/u/Leo)\
**Post date:** [June 29, 2021, 9:23am UTC](https://forum.keycloak.org/t/how-to-access-keycloak-with-ingress-path-url/9590/2 "2021-06-29T09:23:05Z")

</div>

try to set your `path` to `/` only and not sure you need this `rewrite-target: "/$1"`. We don’t have it and all is working well.
