← Back to Pull requests

chore(rhaii): tentative definition of production manifests #10140

Closed
unknown closed this pull request without merging on Oct 12, 2026 17:22 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 19:51 UTC
Author

Related issue: RHOAIENG-96162

Description

Adds an initial production-oriented, Kubernetes-only manifest bundle for the RHAII distribution at manifests/distributions/rhaii.

The bundle defines the RHAII dashboard’s Deployment, Service, ServiceAccount, scoped RBAC, NetworkPolicy, and HTTPRoute. It is deliberately namespace-neutral so a future installer or dashboard-operator reconciliation can inject the application namespace.

Key details:

  • Does not depend on OpenShift APIs or CRDs.

  • Runs the primary RHAII dashboard listener on named port dashboard / port 8443.

  • Uses hardened pod/container settings: non-root execution, dropped Linux capabilities, RuntimeDefault seccomp, read-only root filesystem, and a projected short-lived service-account token.

  • Uses Downward API namespace injection for NAMESPACE and POD_NAMESPACE.

  • Always renders the HTTPRoute; its parent Gateway defaults are configurable through params.env, and its backend port is derived from the Service port through Kustomize replacements.

  • Builds and embeds the Model Serving federated UI in the RHAII image at /_mf/modelServing/, allowing the RHAII Core-BFF to serve it from the same origin without a separate UI Deployment or CORS configuration.

  • Uses native build stages for cross-platform container builds, avoiding the Rspack/QEMU crash observed while building an AMD64 image from an ARM host.
  • This PR intentionally does not add dashboard-operator or odh-gitops onboarding. The new bundle is raw manifest input for that future integration and is not reconciled automatically today.

    How Has This Been Tested?

    A pair of convenience helpers make independent validation repeatable:

  • [deploy-rhaii-dashboard](https://gitlab.cee.redhat.com/astonebe/rhoia-onboarding-scripts/-/blob/main/bin/deploy-rhaii-dashboard?ref_type=heads) builds and pushes an image, renders and applies the bundle, waits for rollout, and verifies /healthcheck through a temporary Service port-forward.

  • [jenkins-aks-trigger](https://gitlab.cee.redhat.com/astonebe/rhoia-onboarding-scripts/-/blob/main/bin/jenkins-aks-trigger?ref_type=heads) can provision an AKS cluster and its normal RHAII/RHOAI platform setup before deployment.
  • Example deployment using a personal Quay namespace:

    cd <path>/rhoia-onboarding-scripts
    
    bin/deploy-rhaii-dashboard \
      --dashboard-repo <path>/odh-dashboard \
      --quay-namespace <namespace> \
      --container-tool podman \
      --image-tag rhaii-pr-validation
    

    To provision AKS, configure kubectl, and then build/deploy in one operation:

    bin/deploy-rhaii-dashboard \
      --provision-aks \
      --provision-script bin/jenkins-aks-trigger \
      --aks-cluster-name <cluster-name> \
      --dashboard-repo <path>/odh-dashboard \
      --quay-namespace <your-quay-namespace> \
      --container-tool podman \
      --image-tag rhaii-pr-validation
    

    The deployment helper always renders and applies the HTTPRoute. Gateway admission inspection is optional because a Gateway/controller may not yet exist:

    If deploying via Jenkins with --cluster-only - will need to install the GatewayAPI CRDs when the cluster is first built:

    kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/latest/download/standard-install.yaml
    

    bin/deploy-rhaii-dashboard \
      --dashboard-repo /Users/astonebe/Development/Code/GitHub/odh-dashboard \
      --quay-namespace <your-quay-namespace> \
      --container-tool podman \
      --image-tag rhaii-pr-validation \
      --verify-gateway
    

    For a render and Kubernetes API validation without making cluster changes:

    bin/deploy-rhaii-dashboard \
      --dashboard-repo <path>/odh-dashboard \
      --image quay.io/<your-quay-namespace>/rhaii-dashboard:<tag> \
      --dry-run
    

    Additionally, the following repository-local validations were run:

    kustomize build manifests/distributions/rhaii
    manifests/scripts/check-no-hardcoded-namespace.sh manifests/distributions/rhaii
    git diff --check
    

    The rendered bundle was manually deployed to an AKS cluster in redhat-ods-applications. The rhaii-dashboard Deployment reached Ready status and its /healthcheck endpoint was verified through a local Service port-forward.

    Gateway API CRDs were installed during validation, but no Gateway/controller was present. This is expected: an HTTPRoute may be created before its parent Gateway is available.

  • Gateway API CRDs were installed for the manual deployment. A Gateway/controller was not present, which is expected: the HTTPRoute can be created before its parent Gateway is available.
  • Current/expected state for successful validation:

    <img width="1750" height="457" alt="image" src="https://github.com/user-attachments/assets/64da481b-ab7f-44b6-9c62-bfa15c06803c" />

  • auth z/n not working yet / blocked
  • Test Impact

    No unit or Cypress tests were added because this change introduces container build configuration and Kubernetes manifests only; it does not change application behavior covered by the existing frontend test suites.

    The manifest rendering, namespace validation, and manual cluster deployment checks above cover the applicable behavior.

    Request review criteria:

    Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work

  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).

  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

  • The code follows our [Best Practices](/docs/best-practices.md) (React coding standards, PatternFly usage, performance considerations)
  • If you have UI changes:

  • Included any necessary screenshots or gifs if it was a UI change.
  • After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main
  • The final checkbox should remain unchecked until the PR-built image has been deployed and tested on the cluster.

    [RHOAIENG-96162]: https://redhat.atlassian.net/browse/RHOAIENG-96162?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Summary by CodeRabbit

    New Features
    Added a dashboard for the RHAII distribution, accessible through an HTTP route.
    Enabled the dashboard to serve the Model Serving interface over port 8443.
    Reliability and Security
    Added health checks and multiple dashboard instances to support availability.
    Restricted network access to the dashboard and applied secure container settings.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: paulovmr Review duration: 7050m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10140"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%