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
---
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
---
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/, but for the admin console the page is not loading.