Integrating Keycloak with my application in K8S Integrating Keycloak with my application in K8S kubernetes kubernetes

Integrating Keycloak with my application in K8S


On a high level, assuming your application is some sort of frontend UI and you want a user to be redirected to keycloak for login, you will have to do certain things. First, both keycloak and your application must be publicly accessible. This is normally done using an ingress resource. The ingress will map a domain to a service. In your case you will need two ingress resources, one for your app and one for keycloak. Both your app and keycloak must be exposed with service resources.

So, you will have ingress pointing to a service pointing to a port on a pod. Then you can configure the upstream keycloak URL in your application (pod).