pub struct ClusterNetworkEntry {
pub cidr: String,
pub host_subnet_length: i64,
}
Expand description
ClusterNetworkEntry defines an individual cluster network. The CIDRs cannot overlap with other cluster network CIDRs, CIDRs reserved for external ips, CIDRs reserved for service networks, and CIDRs reserved for ingress ips.
Fields§
§cidr: String
CIDR defines the total range of a cluster networks address space.
host_subnet_length: i64
HostSubnetLength is the number of bits of the accompanying CIDR address to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods.
Trait Implementations§
Source§impl Clone for ClusterNetworkEntry
impl Clone for ClusterNetworkEntry
Source§fn clone(&self) -> ClusterNetworkEntry
fn clone(&self) -> ClusterNetworkEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClusterNetworkEntry
impl Debug for ClusterNetworkEntry
Source§impl Default for ClusterNetworkEntry
impl Default for ClusterNetworkEntry
Source§fn default() -> ClusterNetworkEntry
fn default() -> ClusterNetworkEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterNetworkEntry
impl<'de> Deserialize<'de> for ClusterNetworkEntry
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClusterNetworkEntry
impl PartialEq for ClusterNetworkEntry
Source§impl Serialize for ClusterNetworkEntry
impl Serialize for ClusterNetworkEntry
impl StructuralPartialEq for ClusterNetworkEntry
Auto Trait Implementations§
impl Freeze for ClusterNetworkEntry
impl RefUnwindSafe for ClusterNetworkEntry
impl Send for ClusterNetworkEntry
impl Sync for ClusterNetworkEntry
impl Unpin for ClusterNetworkEntry
impl UnwindSafe for ClusterNetworkEntry
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