Skip to content

Commit 772a0e8

Browse files
authored
fix(techdocs-plugin): ensure techdocs-plugin PVC can be mounted properly with more RHDH replicas (#300)
Helped-by: Cursor Signed-off-by: Pavel Macík <pavel.macik@gmail.com>
1 parent 6204a55 commit 772a0e8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

ci-scripts/rhdh-setup/deploy.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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} \
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+

0 commit comments

Comments
 (0)