jboss 使用Bitnami Helm图表时,Keycloak无故停止

quhf5bfb  于 2022-11-08  发布在  其他
关注(0)|答案(1)|浏览(184)

我正在尝试使用bitnami helm chart部署一个keycloak服务器,该服务器连接了postgres数据库,并使用flux配置如下。

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: "true"
      - name: PROXY_ADDRESS_FORWARDING
        value: "true"
      - name: JAVA_OPTS_APPEND
        value: "-Djboss.as.management.blocking.timeout=7200"
      - name : KEYCLOAK_HTTP_PORT
        value : "8080"
      - name: KEYCLOAK_HTTPS_PORT
        value: "8443"
    extraVolumes:
      - name: disable-theme-cache-volume
        configMap:
          name: disable-theme-cache
    extraVolumeMounts:
      - name: disable-theme-cache-volume
        mountPath: /opt/jboss/startup-scripts

然而,似乎有一个joss问题,因为容器从来没有启动,服务器停止没有任何特殊的原因。

我想问题一定出在一些jboss配置上,但我看不出是什么。有什么想法吗?:)

xqkwcwgp

xqkwcwgp1#

我的第一个猜测是资源限制可能太严格了。至少内存应该更多。

resources:
      limits:
        memory: 256Mi
        cpu: 250m
      requests:
        memory: 256Mi
        cpu: 250m

相关问题