Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions content/patterns/openshift-aiops-platform/_index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: OpenShift AIOps Self-Healing Platform
date: 2026-02-26
tier: sandbox
summary: This pattern provides an AI-powered self-healing platform for OpenShift clusters, combining deterministic automation with machine learning for intelligent incident response.
rh_products:
- Red Hat OpenShift Container Platform
- Red Hat OpenShift Service on AWS
- Red Hat OpenShift AI
- Red Hat OpenShift GitOps
- Red Hat OpenShift Pipelines
- Red Hat OpenShift Data Foundation
industries:
- General
pattern_logo: openshift-aiops-platform.png
links:
github: https://github.com/KubeHeal/openshift-aiops-platform
install: getting-started
arch: https://github.com/KubeHeal/openshift-aiops-platform/blob/main/docs/adrs/002-hybrid-self-healing-approach.md
bugs: https://github.com/KubeHeal/openshift-aiops-platform/issues
feedback: https://github.com/KubeHeal/openshift-aiops-platform/discussions
ci: openshift-aiops-platform
---
:toc:
:imagesdir: /images
:_content-type: ASSEMBLY
include::modules/comm-attributes.adoc[]
include::modules/openshift-aiops-platform/metadata-openshift-aiops-platform.adoc[]

include::modules/oaiops-about.adoc[leveloffset=+1]

include::modules/oaiops-solution-elements.adoc[leveloffset=+2]

include::modules/oaiops-architecture.adoc[leveloffset=+1]

[id="next-steps_openshift-aiops-platform-index"]
== Next steps

* link:getting-started[Deploy the OpenShift AIOps Self-Healing Platform]
* Review the link:cluster-sizing[cluster sizing requirements]
* Explore link:ideas-for-customization[customization options]
* Read link:{repo_url}/blob/main/docs/adrs/002-hybrid-self-healing-approach.md[the hybrid self-healing architecture decision record]
* Report a problem at link:{issues_url}[GitHub issues]
144 changes: 144 additions & 0 deletions content/patterns/openshift-aiops-platform/cluster-sizing.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
---
title: Cluster sizing
weight: 50
aliases: /openshift-aiops-platform/openshift-aiops-platform-cluster-sizing/
---

:toc:
:imagesdir: /images
:_content-type: ASSEMBLY

include::modules/comm-attributes.adoc[]
include::modules/openshift-aiops-platform/metadata-openshift-aiops-platform.adoc[]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to the comment in _index.adoc, you could include this metadata file in the _index.adoc file instead and use {repo_url} and {issues_url} in place of {igithub-url} and {feedback-url}.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The metadata module is included from the pattern index, and the next-steps links use {repo_url} and {issues_url}.


include::modules/cluster-sizing-template.adoc[]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The metadata file for this pattern has :extra_features_spoke_support: true set, but doesn't set any requirements_spoke_* values, so there's no sizing recommendations showing up under " spoke/managed cluster size minimum requirements" in the preview build: https://652--patternsdocs-pr.netlify.app/patterns/openshift-aiops-platform/cluster-sizing/#openshift-aiops-platform-openshift-spoke-cluster-size

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra_features_spoke_support is false, and the spoke requirement attributes are removed, so the empty spoke table is gone. Managed clusters are out of scope for this pattern.


[id="additional-sizing-considerations-openshift-aiops"]
== Additional sizing considerations

The tested minimum is the table above.
On Amazon Web Services that minimum is {requirements_hub_compute_platform_aws_replicas} worker replica of type {requirements_hub_compute_platform_aws_type}, and {requirements_hub_controlPlane_platform_aws_replicas} control plane replica of type {requirements_hub_controlPlane_platform_aws_type}.
Managed clusters are out of scope.
`spoke_support` is `false` in `pattern-metadata.yaml`, so this page has no spoke size.

[id="oaiops-optional-scale-up"]
=== Optional larger layouts

These layouts are larger than the tested minimum.
Use one of them when the workload needs it.

*ROSA Classic highly available*::
ROSA manages the control plane.
You configure only worker nodes by using machine pools.
Three `m5.2xlarge` workers are a common production starting point.
Add a `g5.2xlarge` machine pool when you want a GPU for training.

*Installer-provisioned infrastructure or bare metal*::
A larger self-managed layout is three control plane nodes and six compute nodes.
That layout is guidance, not the tested minimum in the table.

*Single-node OpenShift*::
One node can run the pattern for a lab or an edge site.
Start with 8 vCPUs, 32 GB of memory, and 120 GB of disk.
16 vCPUs and 64 GB of memory leave more room for notebooks and model serving.

[NOTE]
====
A single-node deployment has no node failover.
It fits a lab, an edge site, or a case where you manage a single cluster.
The install detects the topology when `cluster.topology` is `sno`.
====

Confirm the topology before you install:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure you want this admonition block to end on line 77 instead of line 85?

Also, you can avoid passive voice by changing "scenarios where a single cluster is being managed" to "scenarios where you manage a single cluster".

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The note closes before the make show-cluster-info commands, and the sentence is "a case where you manage a single cluster".

[source,terminal]
----
$ make show-cluster-info
----

[id="oaiops-configure-storage"]
== Storage for clusters without S3

The install procedure does not install OpenShift Data Foundation.
ROSA clusters use Amazon S3, so they skip this section.

`scripts/configure-cluster-infrastructure.sh` does all of the following:

* Detects ROSA, highly available, or single-node topology.
* On installer-provisioned infrastructure, scales worker MachineSets when the cluster has fewer than three workers.
On ROSA, it leaves MachinePools alone.
* Installs OpenShift Data Foundation unless you pass `--skip-odf`.
Highly available clusters get Ceph and NooBaa.
Single-node clusters get NooBaa only.
* Waits until the storage objects are ready.

Pass `--skip-odf` when S3-compatible storage already exists, including ROSA with Amazon S3:

[source,terminal]
----
$ ./scripts/configure-cluster-infrastructure.sh --skip-odf
----

Omit `--skip-odf` when the script should install OpenShift Data Foundation:

[source,terminal]
----
$ make configure-cluster
----

`make configure-cluster` is the same script with no extra flags.

[id="oaiops-storage-guidance"]
== Storage guidance

These sizes are examples from the default values, not a second minimum.

[cols="2,2,3",options="header"]
|===
|Use |Size |Storage class

|Model files shared by notebooks and KServe
|10Gi
|`ocs-storagecluster-cephfs` on a highly available cluster with OpenShift Data Foundation, or `gp3-csi` on ROSA and single-node

|Workbench notebook data
|20Gi
|`gp3-csi` or the cluster default ReadWriteOnce class

|Model artifacts in object storage
|Bucket you create
|Amazon S3 on ROSA, or NooBaa on installer-provisioned infrastructure, bare metal, and single-node
|===

An example highly available cluster with seven nodes had about 57 cores and 185 GB of memory.
That example is not the tested minimum.

Component requests you can plan for:

[cols="2,1,1",options="header"]
|===
|Component |CPU request |Memory request

|Anomaly detector
|500m
|1Gi

|Predictive analytics
|2
|4Gi

|Coordination engine
|200m
|256Mi

|Workbench
|2
|4Gi
|===

A GPU is optional.
Add one when training time matters.
Inference for the shipped models runs on CPU.

Prometheus traffic for this pattern stays on the same cluster.
There is no spoke bandwidth requirement.
131 changes: 131 additions & 0 deletions content/patterns/openshift-aiops-platform/developing.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
---
title: Developing with notebooks
weight: 20
aliases: /openshift-aiops-platform/developing/
---
:toc:
:imagesdir: /images
:_content-type: ASSEMBLY
include::modules/comm-attributes.adoc[]

[id="oaiops-developing"]
= Developing with notebooks

Access the Jupyter workbench through the OpenShift AI dashboard using OAuth authentication.
The workbench is the place to run the pattern notebooks, train models, and try a change before you commit it.

[id="oaiops-open-workbench"]
== Open the workbench

.Procedure

. Read the dashboard route:
+
[source,terminal]
----
$ oc get route data-science-gateway -n openshift-ingress -o jsonpath='{.spec.host}{"\n"}'
----
+
.Example output
+
[source,terminal]
----
data-science-gateway.apps.cluster.example.com
----

. Open `https://data-science-gateway.apps.cluster.example.com` and sign in with your OpenShift user.

. Open *Data Science Projects*, then *self-healing-platform*.

. In *Workbenches*, select *Open* next to `self-healing-workbench`.

The workbench mounts notebook data at `/opt/app-root/src/data` and model files at `/mnt/models`.

[id="oaiops-notebook-catalog"]
== Notebook catalog

The repository includes notebooks under `notebooks/`.
They are the templates for data collection, training, and remediation.

[cols="1,1,3",options="header"]
|===
|Directory |Count |What you use it for

|`00-setup/`
|3
|Cluster checks, KServe onboarding, and the Python environment

|`01-data-collection/`
|5
|Prometheus metrics, events, logs, and features

|`02-anomaly-detection/`
|5
|Isolation Forest, time-series models, and the predictive analytics notebook

|`03-self-healing-logic/`
|3
|Remediation workflows that call the coordination engine

|`04-model-serving/`
|3
|KServe deployment and model versions

|`05-end-to-end-scenarios/`
|4
|Pod crash loops, resource exhaustion, and network anomalies

|`06-mcp-lightspeed-integration/`
|4
|Model Context Protocol (MCP) server and OpenShift Lightspeed

|`07-monitoring-operations/`
|3
|Prometheus metrics and model performance

|`08-advanced-scenarios/`
|3
|Security response, capacity, and cost examples
|===

A hands-on walkthrough of the same workflow is the link:https://kubeheal.github.io/self-healing-workshop/[Self-Healing Workshop].

[id="oaiops-train-models"]
== Train a model

Train from the workbench notebooks, not from a separate pipeline you have to build first.

. Open `notebooks/01-data-collection/` and collect metrics from in-cluster Prometheus.
. Open `notebooks/02-anomaly-detection/01-isolation-forest-implementation.ipynb` for anomaly detection.
. Open `notebooks/02-anomaly-detection/05-predictive-analytics-kserve.ipynb` for the predictive model.
. Save the model file under `/mnt/models/` so the KServe InferenceService can load it from object storage.

GPU time is optional.
The anomaly detector trains on CPU.
The predictive analytics notebook can use a GPU when the cluster has one.

[id="oaiops-submit-anomaly"]
== Submit an anomaly from a notebook

Notebooks in `notebooks/03-self-healing-logic/` call the coordination engine.
A minimal client looks like this:

[source,python]
----
import requests
from datetime import datetime

response = requests.post(
"http://coordination-engine:8080/api/v1/anomalies",
json={
"timestamp": datetime.utcnow().isoformat(),
"type": "custom_performance_degradation",
"severity": "warning",
"confidence": 0.85,
},
timeout=30,
)
print(response.json())
----

Run the notebook in the workbench so the service name `coordination-engine` resolves.
20 changes: 20 additions & 0 deletions content/patterns/openshift-aiops-platform/getting-started.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Getting started
weight: 10
aliases: /openshift-aiops-platform/getting-started/
---
:toc:
:imagesdir: /images
:_content-type: ASSEMBLY
include::modules/comm-attributes.adoc[]

include::modules/oaiops-deploying.adoc[leveloffset=+1]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is enormous - a "getting started" section that is 25 pages long is pretty rough for an initial investigation into the pattern.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting started is the short ROSA install. Troubleshooting, developing, and integrations are separate pages.


[id="next-steps_openshift-aiops-platform-getting-started"]
== Next steps

* Review link:../cluster-sizing[cluster sizing] to confirm the cluster meets the pattern requirements.
* Change topology or storage in link:../ideas-for-customization[Ideas for customization].
* Open the workbench from link:../developing[Developing with notebooks].
* Add link:../integrations[integrations] such as ServiceNow, PagerDuty, or Slack.
* If the install does not become healthy, see link:../troubleshooting[Troubleshooting].
Loading