<p>I am trying to deploy a keycloak server with a postgres database attached using the <a href="https://artifacthub.io/packages/helm/bitnami/keycloak" rel="nofollow noreferrer">bitnami helm chart</a> configured as follows with flux.</p>
<pre><code>apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: keycloak-release
  namespace: keycloak
spec:
  releaseName: keycloak
  targetNamespace: keycloak
  chart:
    spec:
      chart: keycloak
      version: 7.1.x
      sourceRef:
        kind: HelmRepository
        name: bitnami-repo
        namespace: flux-system
  interval: '10s'
  install:
    remediation:
      retries: 3
    timeout: '10m0s'
  values:
    image:
      debug: true
    containerPorts:
      http: 8080
      https: 8443
      management: 9990
    resources:
      limits:
        memory: 256Mi
        cpu: 250m
      requests:
        memory: 256Mi
        cpu: 250m
    service:
      type: NodePort
      ports:
        postgresql: 5432
    postgresql:
      enabled: true
      auth:
        existingSecret: postgres-keycloak
    auth:
      existingSecret: keycloak-secret
    livenessProbe:
      enabled: true
      httpGet:
        path: /auth/
        port: http
      initialDelaySeconds: 300
      periodSeconds: 1
      timeoutSeconds: 5
      failureThreshold: 3
      successThreshold: 1
    readinessProbe:
      enabled: true
      httpGet:
        path: /auth/realms/master
        port: http
      initialDelaySeconds: 30
      periodSeconds: 10
      timeoutSeconds: 1
      failureThreshold: 3
      successThreshold: 1
    extraEnvVars:
      - name: KEYCLOAK_ALWAYS_HTTPS
        value: &quot;true&quot;
      - name: PROXY_ADDRESS_FORWARDING
        value: &quot;true&quot;
      - name: JAVA_OPTS_APPEND
        value: &quot;-Djboss.as.management.blocking.timeout=7200&quot;
      - name : KEYCLOAK_HTTP_PORT
        value : &quot;8080&quot;
      - name: KEYCLOAK_HTTPS_PORT
        value: &quot;8443&quot;
    extraVolumes:
      - name: disable-theme-cache-volume
        configMap:
          name: disable-theme-cache
    extraVolumeMounts:
      - name: disable-theme-cache-volume
        mountPath: /opt/jboss/startup-scripts
</code></pre>
<p>However it seems there is a joss issue since the container never starts and the server stops without any particular reason.</p>
<p><a href="https://i.stack.imgur.com/IOhxn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IOhxn.png" alt="logs" /></a></p>
<p>I assume the issue must lie in some jboss configuration but I do not see what. Any idea? :)</p>

Paul Barrié
<p>My first guess is that the resource limits might be too restrictive. At least memory should be more.</p>
<pre class="lang-yaml prettyprint-override"><code>resources:
      limits:
        memory: 256Mi
        cpu: 250m
      requests:
        memory: 256Mi
        cpu: 250m
</code></pre>
