<p>i have a problem when deploy the Keycloak Server on AWS EKS
here is my configuration:</p>

<p><code>Deployment.yaml</code></p>

<blockquote>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-keycloak
spec:
  replicas: 1
  selector:
    matchLabels:
      app: my-keycloak
  template:
    metadata:
      labels:
        app: my-keycloak
    spec:
      containers:
        - name: my-keycloak
          image: jboss/keycloak
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 8080
              name: http
            - containerPort: 8443
              name: https
          env:
            - name: PROXY_ADDRESS_FORWARDING
              value: "true"
</code></pre>
</blockquote>

<p><code>Service.yaml</code></p>

<blockquote>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: my-keycloak
spec:
  selector:
    app: my-keycloak
  ports:
    - port: 8080
      targetPort: 8080
      name: http
</code></pre>
</blockquote>

<p><code>Ingress.yaml</code></p>

<blockquote>
<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  labels:
    app: my-keycloak
  name: my-keycloak-ingress
spec:
  rules:
    - host: mykecloak.com
      http:
        paths:
          - backend:
              serviceName: my-keycloak
              servicePort: 8080
</code></pre>
</blockquote>

<p>but the base url always set to this, which is false and not work. What i want that the base url should be <strong><a href="https://mykeycloak.com/" rel="nofollow noreferrer">https://mykeycloak.com/</a>*</strong> (with https and without the port number)</p>

<p><a href="https://i.stack.imgur.com/tYTWL.jpg" rel="nofollow noreferrer">current-deployment</a></p>

<p>Many people said that the solution is set the <strong>PROXY_ADDRESS_FORWARDING</strong> to <strong>TRUE</strong>, but it doesnot work for me. Is there something i miss ?</p>

<p>Thanks for your help</p>

<p>You need to add the path /*</p>

<pre><code>- host: mykeycloak.com
  http:
    paths:
      - path: /*
        backend:
          serviceName: my-keycloak
          servicePort: 8080
</code></pre>
