Last active
July 2, 2020 17:49
-
-
Save swamibluedata/b770f988f52cc3224838768a13acc5ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
NAMESPACE="hpecp-bootstrap" | |
PVC_NAME="hpecp-bootstrap-harbor" | |
# Fetch pv name | |
PV_NAME=$(kubectl -n $NAMESPACE get pvc/$PVC_NAME -o jsonpath={.spec.volumeName}) | |
# Fetch volume name | |
VOL_NAME=$(kubectl -n $NAMESPACE get pv/$PV_NAME -o jsonpath='{.spec.csi.volumeHandle}') | |
# From hcp controller, expand the volume | |
bdmapr maprcli volume modify -name $VOL_NAME -advisoryquota 5000MB -quota 5000MB | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment