Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

Define affinity and tolerations for agility-system

  1. Define affinity and tolerations override values file

    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

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

Define affinity and tolerations for agility-services

  1. Define affinity and tolerations override values file

    cat <<EOF> agility-services-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"
    
    agility-operator:
      affinity: *affinity
      tolerations: *tolerations
    
    keycloak:
      affinity: *affinity
      tolerations: *tolerations
      keycloakConfigCli:
        podAffinity: *affinity
        podTolerations: *tolerations
    
    minio:
      affinity: *affinity
      tolerations: *tolerations
    
    postgrescluster:
      pgbackrest:
        otherSpecs:
          jobs:
            affinity: *affinity
            tolerations: *tolerations
          repoHost:
            affinity:  *affinity
            tolerations: *tolerations
      instances:
        extraAffinity: *affinity
        tolerations: *tolerations
      proxy:
        extraAffinity: *affinity
        tolerations: *tolerations
    
    strimzi-kafka-cluster-config:
      kafka:
        cluster:
          otherSpecs:
            kafka:
              template:
                pod:
                  affinity: *affinity
                  tolerations: *tolerations
            zookeeper:
              template:
                pod:
                  affinity: *affinity
                  tolerations: *tolerations
            kafkaExporter:
              template:
                pod:
                  affinity: *affinity
                  tolerations: *tolerations
            entityOperator:
              template:
                pod:
                  affinity: *affinity
                  tolerations: *tolerations
      kafka-ui:
        affinity: *affinity
        tolerations: *tolerations
    restore:
      dataSource:
        postgresCluster:
          affinity: *affinity
          tolerations: *tolerations
    EOF
  2. Deploy agility-services adding the new values file

    helm --namespace agility upgrade --install --create-namespace agility-services ./agility-services --values agility-services-values-overrides.yaml --values agility-services-values-affinity-tolerations.yaml

Define affinity and tolerations for agility

  1. Define affinity and tolerations override values file

    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"
      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

    helm --namespace agility upgrade --install --create-namespace agility ./agility --values agility-values-overrides.yaml --values agility-values-affinity-tolerations.yaml
  • No labels