astroctl infra kubernetes storage set
Name a cluster's storage
Synopsis
Binds names to this cluster's StorageClasses. Applications and add-ons ask for storage by these names, so the same application definition works on a cluster whose classes are named differently.
The bindings given replace every existing one: a name left out is removed. Run "storage get" first to see what is bound today.
Each --binding is name=class, or name=class:kind when AstroPulse does not recognise the class's driver. A kind is one of Shared, Dedicated or Node, and cannot disagree with what a recognised driver provides.
Terminal
astroctl infra kubernetes storage set <cluster-name> [flags]
Examples
Terminal
astroctl infra k8s storage set production --binding fast=astro-default-gp3
astroctl infra k8s storage set production --binding shared=efs-sc --binding fast=astro-default-gp3
astroctl infra k8s storage set production --binding archive=my-class:Shared
astroctl infra k8s storage set production --clear
Options
Terminal
--binding stringArray Storage binding as name=class or name=class:kind (repeatable)
--clear Remove every storage binding on this cluster
-h, --help help for set
-o, --output string Output format (table|wide|json|yaml) (default "table")
SEE ALSO
- astroctl infra kubernetes storage - Manage a cluster's storage