Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

All values files must be defined under same directory where agility helm charts were downloaded. Usually agility-charts directory:

Code Block
cd agility-charts

Define affinity and tolerations for agility-system

  1. Define affinity and tolerations override values file

    Code Block
    languagebash
    cat <<EOF> agility-system-values-affinity-tolerations.yaml
    affinity: &affinity
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
          - matchExpressions:
            - key: agility-instance
              operator: In
              values:
              - dtgroup
    tolerations: &tolerations
    - key: "agility-instance"
      operator: "Equal"
      value: "dtgroup"
      effect: "NoSchedule"
    
    pgo:
      affinity: *affinity
      tolerations: *tolerations
    
    strimzi-kafka-operator:
      affinity: *affinity
      tolerations: *tolerations
    EOF
  2. Deploy agility-system adding the new values file

    Code Block
    languagebash
    helm --namespace kube-system upgrade --install --create-namespace agility-system ./agility-system --values agility-system-values-affinity-tolerations.yaml

...

  1. Define affinity and tolerations override values file

    Code Block
    languagebash
    cat <<EOF> agility-values-affinity-tolerations.yaml
    affinity: &affinity
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
          - matchExpressions:
            - key: agility-instance
              operator: In
              values:
              - dtgroup
    tolerations: &tolerations
    - key: "agility-instance"
      opecat <<EOF> agility-values-affinity-tolerations.yaml
    affinity: &affinity
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
          - matchExpressions:
            - key: agility-instance
              operator: In
              values:
              - dtgroup
    tolerations: &tolerations
    - key: "agility-instance"
      operator: "Equal"
      value: "dtgroup"
      effect: "NoSchedule"
    
    cv:
      affinity: *affinity
      tolerations: *tolerations
    
    agility-tests:
      performanceTests:
        affinity: *affinity
        tolerations: *tolerations
      uiTests:
        affinity: *affinity
        tolerations: *tolerations
      sftp-server:
        affinity: *affinity
        tolerations: *tolerations
    EOF
  2. Deploy AGILITY adding the new values file

    Code Block
    languagebash
    helm --namespace agility upgrade --install --create-namespace agility ./agility --values agility-values-overrides.yaml --values agility-values-affinity-tolerations.yaml