Skip to content

Commit

Permalink
Remove Keycloakx parameter preferIPv4Stack
Browse files Browse the repository at this point in the history
Enable IPv6 dualstack support by default since Keycloak v22.
https://www.keycloak.org/server/configuration-production#_configure_keycloak_server_with_ipv4_or_ipv6

Signed-off-by: Gabriel Mainberger <[email protected]>
  • Loading branch information
Gabriel Mainberger committed Mar 4, 2024
1 parent 58a318a commit 3d61c63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions charts/keycloakx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ See example for Google Cloud Proxy or default affinity configuration in `values.
### JVM Settings

Keycloak sets the following system properties by default:
`-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true`
`-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m`

You can override these by setting the `JAVA_OPTS` environment variable.
Make sure you configure container support.
Expand All @@ -271,12 +271,13 @@ extraEnv: |
value: >-
-XX:+UseContainerSupport
-XX:MaxRAMPercentage=50.0
-Djava.net.preferIPv4Stack=true
-Djava.awt.headless=true
```
Alternatively one can append custom JVM options by setting the `JAVA_OPTS_APPEND` environment variable.

The parameter `-Djava.net.preferIPv4Stack=true` is [optional](https://github.com/keycloak/keycloak/commit/ee205c8fbc1846f679bd604fa8d25310c117c87e) for [Keycloak >= v22](https://www.keycloak.org/server/configuration-production#_configure_keycloak_server_with_ipv4_or_ipv6).

#### Using an External Database

The Keycloak Docker image supports various database types.
Expand Down

0 comments on commit 3d61c63

Please sign in to comment.