Coder Social home page Coder Social logo

Comments (9)

flapouille avatar flapouille commented on July 17, 2024

How is it supposed to work ?

When I set keycloak.extraPorts="9999" , I get following error:

Error: UPGRADE FAILED: YAML parse error on keycloak/templates/statefulset.yaml: error converting YAML to JSON: yaml: line 113: could not find expected ':'

from helm-charts.

marcoapvilhena avatar marcoapvilhena commented on July 17, 2024

@flapouille I have the same issue.

from helm-charts.

flapouille avatar flapouille commented on July 17, 2024

@marcoapvilhena in the end I didn't use keycloak.extraPorts . I only use a startup script in order to redirect to another port . with a classical port forward , it's working great.

from helm-charts.

marcoapvilhena avatar marcoapvilhena commented on July 17, 2024

@flapouille nice... but how did you for the Admin start in another port? Here is starting at port 80, I need expose to internet for the applications authenticates for custom realms and can't do the same for the Admin.

from helm-charts.

flapouille avatar flapouille commented on July 17, 2024

in your values.yaml, you should define your startupScript . This one works

startupScripts: 
    restrict_port.cli: |
      embed-server --server-config=standalone-ha.xml --std-out=echo
      /socket-binding-group=standard-sockets/socket-binding=http-admin/:add(port=${jboss.http.port:9991})
      /subsystem=undertow/server=default-server/http-listener=http-admin:add(socket-binding=http-admin, enable-http2=true)
      /subsystem=undertow/configuration=filter/expression-filter=portAccess:add(,expression="path-prefix('/auth/admin') and not equals(%p, 9991) -> response-code(403)")
      /subsystem=undertow/server=default-server/host=default-host/filter-ref=portAccess:add()
      stop-embedded-server

from helm-charts.

flapouille avatar flapouille commented on July 17, 2024

by the way, extraPorts get defined as a string, which means

  extraPorts: |
    - name: admin-port
      containerPort: 9999
      protocol: TCP

from helm-charts.

scramboy avatar scramboy commented on July 17, 2024

Question on configuring ingress after exposing additional admin-port in the service. If I am reading it right in the ingress.yaml, the below line hardcode the port you could reference in ingress.

servicePort: {{ $ingress.servicePort }}

The use case we have is to expose multiple ingress hosts, one for regular auth traffic, and another for full access including adminConsole. We have something else in front of ingress for SSL offloading, and we could separate user traffic with this so that external users could not access adminConsole.

I would like to request allowing a more detailed configuration in ingress, allowing different servicePort to be specified when adding custom ingress rules. I would be happy to provide a PR if the proposal is accepted. Thanks.

from helm-charts.

unguiculus avatar unguiculus commented on July 17, 2024

FYI: The latest version of the chart already includes the admin port (9990). You can reconfigure the service port if you like, but why would you want to use a custom container port?

from helm-charts.

github-actions avatar github-actions commented on July 17, 2024

This issue has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs.

from helm-charts.

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.