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
Define affinity and tolerations override values file
Code Block language bash 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
Deploy agility-system adding the new values file
Code Block language bash helm --namespace kube-system upgrade --install --create-namespace agility-system ./agility-system --values agility-system-values-affinity-tolerations.yaml
...
Define affinity and tolerations override values file
Code Block language bash 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
Deploy AGILITY adding the new values file
Code Block language bash helm --namespace agility upgrade --install --create-namespace agility ./agility --values agility-values-overrides.yaml --values agility-values-affinity-tolerations.yaml