File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -458,6 +458,10 @@ install_rhdh_with_helm() {
458458 log_info " Enabling orchestrator plugins"
459459 yq -i ' .orchestrator.enabled = true' " $TMP_DIR /chart-values.temp.yaml"
460460 fi
461+ if [ " ${RHDH_DEPLOYMENT_REPLICAS} " -gt 1 ]; then
462+ log_info " Applying pod affinity for multiple replicas to schedule on same node"
463+ yq -i ' .upstream.backstage |= . + load("template/backstage/helm/pod-affinity-patch.yaml")' " $TMP_DIR /chart-values.temp.yaml"
464+ fi
461465 envsubst \
462466 ' ${OPENSHIFT_APP_DOMAIN} \
463467 ${RHDH_HELM_RELEASE_NAME} \
Original file line number Diff line number Diff line change 1+ affinity :
2+ podAffinity :
3+ requiredDuringSchedulingIgnoredDuringExecution :
4+ - labelSelector :
5+ matchExpressions :
6+ - key : app.kubernetes.io/name
7+ operator : In
8+ values :
9+ - developer-hub
10+ topologyKey : kubernetes.io/hostname
11+
You can’t perform that action at this time.
0 commit comments