I tried to set CPU limits and requests for Keycloak StatefulSet by Keycloak-Operator.
kind: Keycloak
metadata:
name: example-keycloak
labels:
app: sso
spec:
instances: 1
extensions:
externalAccess:
enabled: True
podDisruptionBudget:
enabled: True
keycloakDeploymentSpec:
resources:
limits:
cpu: 600m
requests:
cpu: 300m
When I deployed Keycloak by above yaml file, I can find my pod is running but container is not ready. I checked the pod description and found both LivenessProbe and ReadinessProbe failed.
I tried again and again, and I found I can succeed One out of five times. (Only one time the Keycloak container is ready.)
Then I deployed Keycloak Operator locally and removed LivenessProbe and ReadinessProbe check logic. I deployed Keycloak again and waited several minutes. I found Keycloak working well. (I can accees to the Keycloak GUI page.) Also CPU limits worked well.
I am wondering if current LivenessProbe and ReadinessProbe are incompatible with Resource Limits.
Can you reproduce my issue?
Thanks,
Jiye Yu
Hitachi, Ltd.