Code Monkey home page Code Monkey logo

Comments (5)

jempitman avatar jempitman commented on July 30, 2024

I have also been having the same issue with the keycloak deploy.sh script, and have thus far not managed to find a solution:

keycloak % ./deploy.sh

🗝️ Keycloak deployment started.

📦 Installing Keycloak...
namespace/keycloak-system created
configmap/keycloak-config created

📦 Configuring Helm chart...
"bitnami" already exists with the same configuration, skipping
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈Happy Helming!⎈
Release "polar-keycloak" does not exist. Installing it now.
NAME: polar-keycloak
LAST DEPLOYED: Tue Apr 25 12:47:22 2023
NAMESPACE: keycloak-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: keycloak
CHART VERSION: 14.2.0
APP VERSION: 21.0.2

** Please be patient while the chart is being deployed **

Keycloak can be accessed through the following DNS name from within your cluster:

polar-keycloak.keycloak-system.svc.cluster.local (port 80)

To access Keycloak from outside the cluster execute the following commands:

  1. Get the Keycloak URL by running these commands:

NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch its status by running 'kubectl get --namespace keycloak-system svc -w polar-keycloak'

export HTTP_SERVICE_PORT=$(kubectl get --namespace keycloak-system -o jsonpath="{.spec.ports[?(@.name=='http')].port}" services polar-keycloak)
export SERVICE_IP=$(kubectl get svc --namespace keycloak-system polar-keycloak -o jsonpath='{.status.loadBalancer.ingress[0].ip}')

echo "http://${SERVICE_IP}:${HTTP_SERVICE_PORT}/"
  1. Access Keycloak using the obtained URL.

⌛ Waiting for Keycloak to be deployed...

⌛ Waiting for Keycloak to be ready...
error: timed out waiting for the condition on pods/polar-keycloak-0

As seen above, the script throws a timeout error whilst waiting for the polar-keycloak-0 pod to be ready and falls into a CrashLoopBackOff state.

The issue seems to be that the server within the polar-keycloak-0 pod does not start: is this a property defined in the keycloak-config.yml file or is it managed by Bitnami? Should the issue be raised within the Bitnami/keycloak repo?

Is there an alternative way to deploy a keycloak authentication service on Digital Ocean?

from cloud-native-spring-in-action.

sewah2012 avatar sewah2012 commented on July 30, 2024

i hope @ThomasVitale can come to the rescue at his most available time

from cloud-native-spring-in-action.

ThomasVitale avatar ThomasVitale commented on July 30, 2024

@sewah2012 @jempitman thank you both very much for reporting this issue. I should have blocked the Helm chart version in the scripts. The problem is that newer Chart versions from Bitnami don't work with Keycloak 19, which is the version used in the book. I have updated the scripts now and they should work correctly on DigitalOcean. It would be great if you could verify they work for you as well, thank you so much! You can find the necessary change in de5401d

from cloud-native-spring-in-action.

jempitman avatar jempitman commented on July 30, 2024

Hi @ThomasVitale, thank you for updating the script, it is now correctly for me.

from cloud-native-spring-in-action.

ThomasVitale avatar ThomasVitale commented on July 30, 2024

@jempitman thanks for confirming it works, I'll close the issue now. Feel free to register new issues should you encounter further problems with the scripts, thank you!

from cloud-native-spring-in-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.