pub struct CreateOpts { /* private fields */ }Expand description
Create options for a new nodegroup.
Implementations§
Source§impl CreateOpts
impl CreateOpts
pub fn new( count: u32, local_volume: bool, availability_zone: &str, ) -> CreateOpts
Sourcepub fn with_flavor_id(self, flavor_id: &str) -> CreateOpts
pub fn with_flavor_id(self, flavor_id: &str) -> CreateOpts
Add a reference to a pre-created flavor. It can be omitted in most cases.
Sourcepub fn with_cpus(self, cpus: u32) -> CreateOpts
pub fn with_cpus(self, cpus: u32) -> CreateOpts
Add a CPU count for each node. It can be omitted only in cases when flavor_id is set.
Sourcepub fn with_ram_mb(self, ram_mb: u32) -> CreateOpts
pub fn with_ram_mb(self, ram_mb: u32) -> CreateOpts
Add a RAM count in MB for each node. It can be omitted only in cases when flavor_id is set.
Sourcepub fn with_volume_gb(self, volume_gb: u32) -> CreateOpts
pub fn with_volume_gb(self, volume_gb: u32) -> CreateOpts
Add a volume size in GB for each node. It can be omitted only in cases when flavor_id is set and volume is local.
Sourcepub fn with_volume_type(self, volume_type: &str) -> CreateOpts
pub fn with_volume_type(self, volume_type: &str) -> CreateOpts
Add a blockstorage volume type for each node. It can be omitted only in cases when flavor_id is set and volume is local.
Sourcepub fn with_keypair_name(self, keypair_name: &str) -> CreateOpts
pub fn with_keypair_name(self, keypair_name: &str) -> CreateOpts
Add a name of the SSH key that will be added to all nodes.
Sourcepub fn with_affinity_policy(self, affinity_policy: &str) -> CreateOpts
pub fn with_affinity_policy(self, affinity_policy: &str) -> CreateOpts
Add an optional parameter to tune nodes affinity.
Sourcepub fn with_labels(self, labels: HashMap<String, String>) -> CreateOpts
pub fn with_labels(self, labels: HashMap<String, String>) -> CreateOpts
Add a map of user-defined Kubernetes labels for each node in the group.
Trait Implementations§
Source§impl Debug for CreateOpts
impl Debug for CreateOpts
Auto Trait Implementations§
impl Freeze for CreateOpts
impl RefUnwindSafe for CreateOpts
impl Send for CreateOpts
impl Sync for CreateOpts
impl Unpin for CreateOpts
impl UnwindSafe for CreateOpts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more