Fix route creation to work across different OpenShift clusters

This commit is contained in:
2025-10-04 11:32:50 -03:00
parent 14900fc27f
commit 018bdc0cc5
3 changed files with 11 additions and 9 deletions

View File

@@ -208,10 +208,10 @@ print_status "Step 9: Applying Service..."
oc apply -f "$K8S_DIR/service.yaml"
print_success "Service applied successfully"
# Step 10: Apply Route (use the correct route from manifests)
print_status "Step 10: Applying Route..."
oc apply -f "$K8S_DIR/route.yaml"
print_success "Route applied successfully"
# Step 10: Create Route (let OpenShift generate host automatically)
print_status "Step 10: Creating Route..."
oc expose service resource-governance-service -n "$NAMESPACE" --name=resource-governance-route --path=/
print_success "Route created successfully"
# Step 11: Get application URL
print_status "Step 11: Getting application URL..."