Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-9232

Using Liveness probe with httpGet in the ActiveMQArtemis CR ends with a wrong configuration in the StatefulSet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • AMQ 7.12.0.OPR.1.GA, AMQ 7.12.0.OPR.2.GA
    • operator
    • False
    • None
    • False

      Using Liveness probe with httpGet in the ActiveMQArtemis CR ends with a wrong configuration in the StatefulSet.
      The StatefulSet doesn't create the pod, because the liveness probe is invalid.

      The yaml:

      apiVersion: broker.amq.io/v1beta1
      kind: ActiveMQArtemis
      metadata:
        name: artemis-broker
        namcespace: amq
      spec:
        deploymentPlan:
          requireLogin: true
          livenessProbe:
            httpGet:
              path: /console
              port: 8161
            initialDelaySeconds: 5
            periodSeconds: 5
        console:
          expose: true
        adminUser: admin
        adminPassword: password
      

      This come back from statefulset events:

      create Pod artemis-broker-ss-0 in StatefulSet artemis-broker-ss failed error: Pod "artemis-broker-ss-0" is invalid: spec.containers[0].livenessProbe: Required value: must specify a handler type
      

            Unassigned Unassigned
            valerioziaco Valerio Ziaco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: