<p>I am using this link to have a Keycloak setup on my K8s cluster in Azure cloud.
<a href="https://www.keycloak.org/getting-started/getting-started-kube" rel="nofollow noreferrer">https://www.keycloak.org/getting-started/getting-started-kube</a></p>
<p>Even after following all the steps successfully, unable to get the Keycloak Admin console or Keycloak account on my browser. I have minicube on my machine, also enabled the ingress addon.</p>
<p>Deployed Keycloak deployment and service and also ingress.</p>
<p>I do the echo :
KEYCLOAK_URL=https://keycloak.$(minikube ip).nip.io &amp;&amp;</p>
<pre><code>echo &quot;Keycloak:                 $KEYCLOAK_URL&quot; &amp;&amp;
echo &quot;Keycloak Admin Console:   $KEYCLOAK_URL/admin&quot; &amp;&amp;
echo &quot;Keycloak Account Console: $KEYCLOAK_URL/realms/myrealm/account&quot; &amp;&amp;
echo &quot;&quot;
</code></pre>
<p>and get the successful output without errors:</p>
<pre><code>Keycloak:                         https://keycloak.&lt;IP&gt;.nip.io
Keycloak Admin Console:           https://keycloak.&lt;IP&gt;.nip.io:8443/admin
Keycloak Account Console:         https://keycloak.&lt;IP&gt;.nip.io/realms/myrealm/account
</code></pre>
<p>But when I try opening the Admin console link or Keycloak link, in my browser it does not open.</p>
<p>Not sure as what am I missing and what else is supposed to be done?</p>

<p>You can check out my YAML files to deploy the Keycloak on Kubernetes.</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: keycloak
  labels:
    app: keycloak
spec:
  ports:
  - name: http
    port: 8080
    targetPort: 8080
  selector:
    app: keycloak
  type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: keycloak
  namespace: default
  labels:
    app: keycloak
spec:
  replicas: 1
  selector:
    matchLabels:
      app: keycloak
  template:
    metadata:
      labels:
        app: keycloak
    spec:
      containers:
      - name: keycloak
        image: quay.io/keycloak/keycloak:10.0.0
        env:
        - name: KEYCLOAK_USER
          value: &quot;admin&quot;
        - name: KEYCLOAK_PASSWORD
          value: &quot;admin&quot;
        - name: PROXY_ADDRESS_FORWARDING
          value: &quot;true&quot;
        - name: DB_VENDOR
          value: POSTGRES
        - name: DB_ADDR
          value: postgres
        - name: DB_DATABASE
          value: keycloak
        - name: DB_USER
          value: root
        - name: DB_PASSWORD
          value: password
        - name : KEYCLOAK_HTTP_PORT
          value : &quot;80&quot;
        - name: KEYCLOAK_HTTPS_PORT
          value: &quot;443&quot;
        - name : KEYCLOAK_HOSTNAME
          value : keycloak.harshmanvar.tk #replace with ingress URL
        ports:
        - name: http
          containerPort: 8080
        - name: https
          containerPort: 8443
        readinessProbe:
          httpGet:
            path: /auth/realms/master
            port: 8080
</code></pre>
<p><a href="https://github.com/harsh4870/Keycloack-postgres-kubernetes-deployment" rel="nofollow noreferrer">https://github.com/harsh4870/Keycloack-postgres-kubernetes-deployment</a></p>
<p>Feel free to refer this article for more : <a href="https://faun.pub/keycloak-kubernetes-deployment-409d6ccd8a39" rel="nofollow noreferrer">https://faun.pub/keycloak-kubernetes-deployment-409d6ccd8a39</a></p>
