Tweak the default memory request and limit in the Operator (#27170)

Closes #27169

Signed-off-by: Václav Muzikář <vmuzikar@redhat.com>
This commit is contained in:
Václav Muzikář 2024-02-21 10:03:17 +01:00 committed by GitHub
parent 3bc074913e
commit de60c9b469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -291,7 +291,7 @@ spec:
The Keycloak CR now allows for specifying the `resources` options for managing compute resources for the Keycloak container. The Keycloak CR now allows for specifying the `resources` options for managing compute resources for the Keycloak container.
It provides the ability to request and limit resources independently for the main Keycloak deployment via the Keycloak CR, and for the realm import Job via the Realm Import CR. It provides the ability to request and limit resources independently for the main Keycloak deployment via the Keycloak CR, and for the realm import Job via the Realm Import CR.
When no values are specified, the default `requests` memory is set to `768MiB`, and the `limits` memory is set to `4GiB`. When no values are specified, the default `requests` memory is set to `1700MiB`, and the `limits` memory is set to `2GiB`.
You can specify your custom values based on your requirements as follows: You can specify your custom values based on your requirements as follows:

View file

@ -407,7 +407,7 @@ The property keys used by the operator for advanced configuration have changed f
= Keycloak CR resources options = Keycloak CR resources options
When no `resources` options are specified in the Keycloak CR and KeycloakRealmImport CR, default values are used. When no `resources` options are specified in the Keycloak CR and KeycloakRealmImport CR, default values are used.
The default `requests` memory for Keycloak deployment and the realm import Job is set to `768MiB`, and the `limits` memory is set to `4GiB`. The default `requests` memory for Keycloak deployment and the realm import Job is set to `1700MiB`, and the `limits` memory is set to `2GiB`.
= Updates to cookies = Updates to cookies

View file

@ -174,7 +174,7 @@ spec:
The Keycloak CR allows specifying the `resources` options for managing compute resources for the {project_name} container. The Keycloak CR allows specifying the `resources` options for managing compute resources for the {project_name} container.
It provides the ability to request and limit resources independently for the main Keycloak deployment via the Keycloak CR, and for the realm import Job via the Realm Import CR. It provides the ability to request and limit resources independently for the main Keycloak deployment via the Keycloak CR, and for the realm import Job via the Realm Import CR.
When no values are specified, the default `requests` memory is set to `768MiB`, and the `limits` memory is set to `4GiB`. When no values are specified, the default `requests` memory is set to `1700MiB`, and the `limits` memory is set to `2GiB`.
These values were chosen based on a deeper analysis of {project_name} memory management. These values were chosen based on a deeper analysis of {project_name} memory management.
If no values are specified in the Realm Import CR, it falls back to the values specified in the Keycloak CR, or to the defaults as defined above. If no values are specified in the Realm Import CR, it falls back to the values specified in the Keycloak CR, or to the defaults as defined above.

View file

@ -10,8 +10,8 @@ kc.operator.keycloak.image-pull-policy=Always
kc.operator.keycloak.start-optimized=false kc.operator.keycloak.start-optimized=false
kc.operator.keycloak.poll-interval-seconds=60 kc.operator.keycloak.poll-interval-seconds=60
# Keycloak container default requests/limits resources # Keycloak container default requests/limits resources
kc.operator.keycloak.resources.requests.memory=768Mi kc.operator.keycloak.resources.requests.memory=1700Mi
kc.operator.keycloak.resources.limits.memory=4Gi kc.operator.keycloak.resources.limits.memory=2Gi
# https://quarkus.io/guides/deploying-to-kubernetes#environment-variables-from-keyvalue-pairs # https://quarkus.io/guides/deploying-to-kubernetes#environment-variables-from-keyvalue-pairs
quarkus.kubernetes.env.vars.related-image-keycloak=${kc.operator.keycloak.image} quarkus.kubernetes.env.vars.related-image-keycloak=${kc.operator.keycloak.image}