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

[Doc] Wrong Example for antiAffinity within documentation

XMLWordPrintable

    • False
    • None
    • False
    • Documentation (Ref Guide, User Guide, etc.)
    • Hide

      Update the example in the below manner to make it work:

          affinity:
            podAntiAffinity:
              requiredDuringSchedulingIgnoredDuringExecution:
                - labelSelector:
                    matchExpressions:
                      - key: name
                        operator: In
                        values:
                          - broker1
                  topologyKey: topology.kubernetes.io/zone 
      Show
      Update the example in the below manner to make it work:     affinity:       podAntiAffinity:         requiredDuringSchedulingIgnoredDuringExecution:           - labelSelector:               matchExpressions:                 - key: name                   operator : In                   values:                     - broker1             topologyKey: topology.kubernetes.io/zone
    • Hide

      Follow the instructions given in the AMQ broker 7.10 documentation for and Controlling pod placement using affinity and anti-affinity rules section 4.12.3.

      Try deploying the broker.

      It will throw an exception as given in the description.

      The example needs to be modified to make it work properly. The modification is given in the workaround section.

      Show
      Follow the instructions given in the AMQ broker 7.10 documentation for and Controlling pod placement using affinity and anti-affinity rules section 4.12.3. Try deploying the broker. It will throw an exception as given in the description. The example needs to be modified to make it work properly. The modification is given in the workaround section.

      Hi,

      Following the documentation for creating amq broker pods with anti-affinity results in the below exception:

      Error "Invalid value: "object": spec.deploymentPlan.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution in body must be of type array: "object"" for field "spec.deploymentPlan.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution". 

            jcliffor@redhat.com John Clifford
            rhn-support-shchavan Shrikant Chavan (Inactive)
            Tiago Bueno Tiago Bueno
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: