Class ClusterNetworkEntry
- java.lang.Object
-
- io.fabric8.openshift.api.model.installer.v1.ClusterNetworkEntry
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ClusterNetworkEntryBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ClusterNetworkEntry extends Object implements io.fabric8.kubernetes.api.builder.Editable<ClusterNetworkEntryBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ClusterNetworkEntry is a single IP address block for pod IP blocks. IP blocks are allocated with size 2^HostSubnetLength.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterNetworkEntry()No args constructor for use in serializationClusterNetworkEntry(String cidr, Integer hostPrefix, Integer hostSubnetLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterNetworkEntryBuilderedit()Map<String,Object>getAdditionalProperties()StringgetCidr()ClusterNetworkEntry is a single IP address block for pod IP blocks.IntegergetHostPrefix()HostPrefix is the prefix size to allocate to each node from the CIDR.IntegergetHostSubnetLength()The size of blocks to allocate from the larger pool.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCidr(String cidr)ClusterNetworkEntry is a single IP address block for pod IP blocks.voidsetHostPrefix(Integer hostPrefix)HostPrefix is the prefix size to allocate to each node from the CIDR.voidsetHostSubnetLength(Integer hostSubnetLength)The size of blocks to allocate from the larger pool.ClusterNetworkEntryBuildertoBuilder()
-
-
-
Method Detail
-
getCidr
public String getCidr()
ClusterNetworkEntry is a single IP address block for pod IP blocks. IP blocks are allocated with size 2^HostSubnetLength.
-
setCidr
public void setCidr(String cidr)
ClusterNetworkEntry is a single IP address block for pod IP blocks. IP blocks are allocated with size 2^HostSubnetLength.
-
getHostPrefix
public Integer getHostPrefix()
HostPrefix is the prefix size to allocate to each node from the CIDR. For example, 24 would allocate 2^8=256 adresses to each node. If this field is not used by the plugin, it can be left unset. When multiple CIDRs of the same family (i.e. IPv4/IPv6) are present, their HostPrefix value must be the same.
-
setHostPrefix
public void setHostPrefix(Integer hostPrefix)
HostPrefix is the prefix size to allocate to each node from the CIDR. For example, 24 would allocate 2^8=256 adresses to each node. If this field is not used by the plugin, it can be left unset. When multiple CIDRs of the same family (i.e. IPv4/IPv6) are present, their HostPrefix value must be the same.
-
getHostSubnetLength
public Integer getHostSubnetLength()
The size of blocks to allocate from the larger pool. This is the length in bits - so a 9 here will allocate a /23.
-
setHostSubnetLength
public void setHostSubnetLength(Integer hostSubnetLength)
The size of blocks to allocate from the larger pool. This is the length in bits - so a 9 here will allocate a /23.
-
edit
public ClusterNetworkEntryBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ClusterNetworkEntryBuilder>
-
toBuilder
public ClusterNetworkEntryBuilder toBuilder()
-
-