# Ingress-nginx on GKE unable to get /auth on SSL

**URL:** <https://forum.camunda.io/t/ingress-nginx-on-gke-unable-to-get-auth-on-ssl/56909>\
**Category:** Camunda 8 Topics\
**Created:** [November 13, 2024, 4:24am UTC](https://forum.camunda.io/t/ingress-nginx-on-gke-unable-to-get-auth-on-ssl/56909 "2024-11-13T04:24:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![atultewari](https://forum.camunda.io/letter_avatar_proxy/v4/letter/a/4bbf92/32.png) [@atultewari](https://forum.camunda.io/u/atultewari)\
**Post date:** [November 13, 2024, 4:24am UTC](https://forum.camunda.io/t/ingress-nginx-on-gke-unable-to-get-auth-on-ssl/56909/1 "2024-11-13T04:24:40Z")

</div>

Hello Camunda,  
We are using ingress-nginx in a GKE cluster. We used the following `camunda-ingress.yaml`

```auto
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: camunda-ingress
spec:
  tls:
    - hosts:
      - dev-camunda.abcdefg.dev      
      secretName: tls-secret
  ingressClassName: nginx
  rules:
    - host: dev-camunda.abcdefg.dev
      http:
        paths:
        - path: /operate
          pathType: Prefix
          backend:
            # This assumes http-svc exists and routes to healthy endpoints
            service:
              name: camunda-operate
              port:
                number: 80
        - path: /tasklist
          pathType: Prefix
          backend:
            # This assumes http-svc exists and routes to healthy endpoints
            service:
              name: camunda-tasklist
              port:
                number: 80
        - path: /optimize
          pathType: Prefix
          backend:
            # This assumes http-svc exists and routes to healthy endpoints
            service:
              name: camunda-optimize
              port:
                number: 80
        # - path: /auth
        # pathType: Prefix
        # backend:
        # # This assumes http-svc exists and routes to healthy endpoints
        # service:
        # name: camunda-keycloak
        # port:
        # number: 80

```

As you can see, the `/auth` endpoint is commented out. The reason for that is because if we include that in our ingress we get the following error

```auto
Error: INSTALLATION FAILED: 1 error occurred:
	* admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: 
-------------------------------------------------------------------------------
Error: exit status 1
2024/11/13 04:12:09 [emerg] 2469#2469: duplicate location "/auth/" in /tmp/nginx/nginx-cfg90617931:1382
nginx: [emerg] duplicate location "/auth/" in /tmp/nginx/nginx-cfg90617931:1382
nginx: configuration file /tmp/nginx/nginx-cfg90617931 test failed
-------------------------------------------------------------------------------

```

However, now that we don’t add the ingress for `/auth` using `https`, we are unable to enable TLS that terminates at the nginx-controller. And because keycloak requires `https` we cannot proceed.

What might we be missing? Any insight would be appreciated. Here is the `camunda-values.yaml` we used. I presume we don’t need SSL for `zeebe-dev-camunda.abcdefg.dev`

```auto
global:
  identity:
    auth:
      publicIssuerUrl: "https://dev-camunda.abcdefg.dev/auth/realms/camunda-platform"
      operate:
        redirectUrl: "https://dev-camunda.abcdefg.dev/operate"
      tasklist:
        redirectUrl: "https://dev-camunda.abcdefg.dev/tasklist"
      optimize:
        redirectUrl: "https://dev-camunda.abcdefg.dev/optimize"
  ingress:
    enabled: true
    className: nginx
    host: "dev-camunda.abcdefg.dev"

operate:
  contextPath: "/operate"

tasklist:
  contextPath: "/tasklist"

optimize:
  contextPath: "/optimize"

zeebeGateway:
  ingress:
    enabled: true
    className: nginx
    host: "zeebe-dev-camunda.abcdefg.dev"

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [February 11, 2025, 4:25am UTC](https://forum.camunda.io/t/ingress-nginx-on-gke-unable-to-get-auth-on-ssl/56909/2 "2025-02-11T04:25:17Z")

</div>

Closed on February 11, 2025, 4:25am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
