Closed ingorichtsmeier closed 3 months ago
@ingorichtsmeier
The local Kubernetes setup requires some prerequesites and configuration...
1.) Install ingress in your local Docker Desktop Kubernetes instance with something like this:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.2/deploy/static/provider/cloud/deploy.yaml
kubectl get pods --all-namespaces -l app.kubernetes.io/name=ingress-nginx --watch
2.) Find out your local hostname (e.g. type hostname
in powershell on windows), then replace armstrong02
with your own hostname in the configuration files. Spring Security will redirect unauthenticated requests from a browser to this URL. The configuration under k8s/localhost does the rest of the trick. Your browser can handle your local hostname without problems. But requests inside Kubernetes need to use the IP of host.docker.internal from the inside of pod.
Hi @VonDerBeck,
I've spend some time recently with your sso-kuberntes example to answer a question from a customer and could not get it running on my local kubernetes Engine in Docker Desktop.
Running the
k8s-deploy.sh
script, only the two pods with keycloak and postgres start successfully.The Camunda pod fails with an exception:
After my experiments, I have some questions about this example:
I've tried with a different setup and change the KEYCLOAK_URL_AUTH in deployment.yaml to point to the keycloak pod and the server starts successfully.
But I'm unsure how this change affects the Spring Boot setup.