Red HatAlberto Falossi, Katya GordeevaTutorial
Configure Red Hat OpenShift Lightspeed autonomous agents
Summary
Red Hat OpenShift Lightspeed 2 on OpenShift 5 allows configuring autonomous agents that start troubleshooting when a cluster alert fires. The agent inspects cluster resources, reads logs and events, and proposes a fix, then with approval can apply the fix and verify the result. The workflow consists of four tasks: analysis, execution, verification, and escalation, each controllable via an approval policy. Configuration involves installing the operator, setting up alert filtering via a ConfigMap, creating an OLSConfig with the alerts adapter, and defining LLMProvider and Agent custom resources. The feature is a Technology Preview and not supported for production use, but enables testing automated remediation with manual approval gates.
Context
Red Hat OpenShift Lightspeed 2 on OpenShift 5 introduces autonomous agents that start troubleshooting when a cluster alert fires. The agents follow a four-task workflow: analyzing the problem, applying a fix, checking the result, and escalating when further help is needed. An approval policy controls whether each stage requires manual approval or starts automatically. The feature is available as a Technology Preview and is not supported for production use.
Approach / What changed
Configure Red Hat OpenShift Lightspeed autonomous agents by installing the OpenShift Lightspeed Operator, creating an alerts-adapter-config ConfigMap to specify which Alertmanager receivers trigger investigations, creating an OLSConfig custom resource with the alerts adapter enabled, configuring an LLMProvider and Agent custom resources, granting investigation and execution permissions, and defining an approval policy to control automation at each workflow stage (analysis, execution, verification, escalation).
Takeaways
OpenShift Lightspeed autonomous agents follow a four-stage workflow: analysis, execution, verification, and escalation. Each stage can be configured to run automatically or require manual approval via an AgenticPolicy custom resource.
Alert filtering is controlled by an alerts-adapter-config ConfigMap that lists allowed Alertmanager receivers. Only alerts routed to those receivers can trigger an automatic investigation, reusing existing routing rules.
The agent requires separate LLM credential configurations for the intelligent assistant and autonomous agents. Investigation permissions are granted via a cluster-reader binding, while execution permissions are scoped through a RemediationTemplate.
FAQ
How do I control which stages run automatically?
The approval policy is defined in an AgenticPolicy custom resource. Each stage (analysis, execution, verification, escalation) can be set to automatic or manual. By default, every stage waits for approval. The example in the article sets analysis and verification to automatic while keeping execution manual.
How do I choose which alerts trigger an investigation?
The alerts-adapter-config ConfigMap specifies which Alertmanager receivers the agents should monitor. By listing receiver names under allowedReceivers, you reuse Alertmanager routing rules to select which alerts can trigger an investigation. The example uses the Critical receiver, which by default receives alerts with severity: critical.
What permissions does the agent need?
The agent needs cluster-wide read access for investigation and permissions to create remediation sandboxes. Investigation permissions are granted by binding the lightspeed-agent service account to a cluster-reader ClusterRole. Execution permissions are granted by creating a RemediationTemplate that defines the sandbox configuration and permissions scoped to the task.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.