Working with Autopilot Rules for OpenShift with FlashArray
Understanding an AutopilotRule
Users use an AutopilotRule CRD to tell Autopilot which objects to monitor, the conditions to monitor, and the corresponding actions to perform when conditions occur.
An AutopilotRule has 4 main parts:
- Selector Matches labels on the objects that the rule should monitor.
- Namespace Selector Matches labels on the Kubernetes namespaces the rule should monitor. This is optional, and the default is all namespaces.
- Conditions The metrics for the objects to monitor.
- Actions to perform once the metric conditions are met.
The subsequent sections describe common operations for managing these rules.
Creating an AutopilotRule
-
Create an
AutopilotRulespec file.- The Use cases page provides end-to-end examples on specific Autopilot use cases. Refer to these to help you create your spec.
- The AutopilotRule Reference page page defines the specification of the rule spec.
-
Apply the spec in your cluster.
oc apply -f volume-resize-autopilotrule.yamlautopilotrule.autopilot.libopenstorage.org/volume-resize created