Autopilot action approvals using kubectl in Rancher
Summary and Key concepts
Summary
This article explains how to use Portworx Autopilot rules with approval workflows. It covers creating an AutopilotRule
that requires manual approval before taking actions, such as expanding a PVC. The workflow includes creating the application, storage class, PVCs, and AutopilotRule, then monitoring the rule as it triggers when specified conditions (like volume usage exceeding 50%) are met. Afterward, the article demonstrates how to approve or decline the action via the ActionApproval
resource. Once approved, the action (e.g., volume resizing) proceeds; otherwise, it remains in a declined state until the ActionApproval
object is deleted.
Kubernetes Concepts
- PersistentVolumeClaim (PVC): A request for storage resources in Kubernetes. Autopilot can resize PVCs based on predefined rules.
- StorageClass: Defines different types of storage that can be dynamically provisioned in Kubernetes.
- kubectl patch: A command used to modify Kubernetes resources, such as approving or declining an
ActionApproval
.
Portworx Concepts
- Autopilot: Automates storage operations like resizing PVCs based on rules and conditions.