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

[DOC] Controlling Pod Placement: affinity and anti-affinity example need update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • documentation
    • None
    • 2
    • False
    • None
    • False
    • Workaround Exists
    • Hide

      The examples in the doc should be updated as follows:

      spec:
          deploymentPlan:
            affinity:
              nodeAffinity:
                requiredDuringSchedulingIgnoredDuringExecution:
                  - nodeSelectorTerms:
                  matchExpressions:
                    - key: zone
                      operator: In
                      values:
                      - emea
      

       

       

      spec:
          deploymentPlan:
            affinity:
              podAntiAffinity:
                requiredDuringSchedulingIgnoredDuringExecution:
                  - labelSelector:
                    matchExpressions:
                      - key: name
                        operator: In
                        values:
                        - broker1
                  topologyKey: topology.kubernetes.io/zone
      
      
      Show
      The examples in the doc should be updated as follows: spec:     deploymentPlan:       affinity:         nodeAffinity:           requiredDuringSchedulingIgnoredDuringExecution:             - nodeSelectorTerms:             matchExpressions:               - key: zone                 operator : In                 values:                 - emea     spec:     deploymentPlan:       affinity:         podAntiAffinity:           requiredDuringSchedulingIgnoredDuringExecution:             - labelSelector:               matchExpressions:               - key: name                 operator : In                 values:                   - broker1             topologyKey: topology.kubernetes.io/zone

      In the Broker's OpenShift guide section 4.17.3.1. Controlling pod placement using node affinity rules the example provided results in the following error:

      *The ActiveMQArtemis "artemis-dev" is invalid: spec.deploymentPlan.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution: Invalid value: "object": spec.deploymentPlan.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution in body must be of type array: "object"*
      

       

      The examples provided:

      spec:
          deploymentPlan:
            affinity:
              nodeAffinity:
                requiredDuringSchedulingIgnoredDuringExecution:
                  nodeSelectorTerms:
                  - matchExpressions:
                    - key: zone
                      operator: In
                      values:
                      - emea
      
      

      and 

      spec:
          deploymentPlan:
            affinity:
              podAntiAffinity:
                requiredDuringSchedulingIgnoredDuringExecution:
                  labelSelector:
                    - matchExpressions:
                    - key: name
                      operator: In
                      values:
                        - artemis-dev-app
                  topologyKey: topology.kubernetes.io/zone
      
      

       

              jcliffor@redhat.com John Clifford
              rhn-support-jsherman Jason Sherman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: