Last active
March 26, 2020 12:35
-
-
Save grdnrio/4bbf43809f6c1f6436f1a3bce3c3bb48 to your computer and use it in GitHub Desktop.
Storage Pool Autopilot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: autopilot.libopenstorage.org/v1alpha1 | |
kind: AutopilotRule | |
metadata: | |
name: pool-expand-till-300 | |
spec: | |
enforcement: required | |
##### conditions are the symptoms to evaluate. | |
conditions: | |
expressions: | |
# pool size is less than 400 GiB | |
- key: "px_pool_stats_total_bytes/(1024*1024*1024)" | |
operator: Lt | |
values: | |
- "210" | |
##### action to perform when condition is true | |
actions: | |
- name: "openstorage.io.action.storagepool/expand" | |
params: | |
# resize pool by scalepercentage of current size. The 100% shown below will double the current pool size. | |
scalesize: "100Gi" | |
# when scaling, add disks to the pool | |
scaletype: "resize-disk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment