Class ClusterNetwork
- java.lang.Object
-
- io.fabric8.openshift.api.model.miscellaneous.network.v1.ClusterNetwork
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ClusterNetworkBuilder>,io.fabric8.kubernetes.api.model.HasMetadata,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ClusterNetwork extends Object implements io.fabric8.kubernetes.api.builder.Editable<ClusterNetworkBuilder>, io.fabric8.kubernetes.api.model.HasMetadata
ClusterNetwork was used by OpenShift SDN. DEPRECATED: OpenShift SDN is no longer supported and this object is no longer used in any way by OpenShift.Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterNetwork()No args constructor for use in serializationClusterNetwork(String apiVersion, List<ClusterNetworkEntry> clusterNetworks, Long hostsubnetlength, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, Long mtu, String network, String pluginName, String serviceNetwork, Long vxlanPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterNetworkBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.List<ClusterNetworkEntry>getClusterNetworks()clusterNetworks is a list of ClusterNetwork objects that defines the global overlay network's L3 space by specifying a set of CIDR and netmasks that the SDN can allocate addresses from.LonggetHostsubnetlength()hostsubnetlength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its podsStringgetKind()Kind is a string value representing the REST resource this object represents.io.fabric8.kubernetes.api.model.ObjectMetagetMetadata()ClusterNetwork was used by OpenShift SDN.LonggetMtu()mtu is the MTU for the overlay network.StringgetNetwork()network is a CIDR string specifying the global overlay network's L3 spaceStringgetPluginName()pluginName is the name of the network plugin being usedStringgetServiceNetwork()serviceNetwork is the CIDR range that Service IP addresses are allocated fromLonggetVxlanPort()vxlanPort sets the VXLAN destination port used by the cluster.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetClusterNetworks(List<ClusterNetworkEntry> clusterNetworks)clusterNetworks is a list of ClusterNetwork objects that defines the global overlay network's L3 space by specifying a set of CIDR and netmasks that the SDN can allocate addresses from.voidsetHostsubnetlength(Long hostsubnetlength)hostsubnetlength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its podsvoidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)ClusterNetwork was used by OpenShift SDN.voidsetMtu(Long mtu)mtu is the MTU for the overlay network.voidsetNetwork(String network)network is a CIDR string specifying the global overlay network's L3 spacevoidsetPluginName(String pluginName)pluginName is the name of the network plugin being usedvoidsetServiceNetwork(String serviceNetwork)serviceNetwork is the CIDR range that Service IP addresses are allocated fromvoidsetVxlanPort(Long vxlanPort)vxlanPort sets the VXLAN destination port used by the cluster.ClusterNetworkBuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
-
-
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
getApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setApiVersion
public void setApiVersion(String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
setApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getClusterNetworks
public List<ClusterNetworkEntry> getClusterNetworks()
clusterNetworks is a list of ClusterNetwork objects that defines the global overlay network's L3 space by specifying a set of CIDR and netmasks that the SDN can allocate addresses from.
-
setClusterNetworks
public void setClusterNetworks(List<ClusterNetworkEntry> clusterNetworks)
clusterNetworks is a list of ClusterNetwork objects that defines the global overlay network's L3 space by specifying a set of CIDR and netmasks that the SDN can allocate addresses from.
-
getHostsubnetlength
public Long getHostsubnetlength()
hostsubnetlength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods
-
setHostsubnetlength
public void setHostsubnetlength(Long hostsubnetlength)
hostsubnetlength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods
-
getKind
public String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Specified by:
getKindin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setKind
public void setKind(String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getMetadata
public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
ClusterNetwork was used by OpenShift SDN. DEPRECATED: OpenShift SDN is no longer supported and this object is no longer used in any way by OpenShift.Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Specified by:
getMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setMetadata
public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
ClusterNetwork was used by OpenShift SDN. DEPRECATED: OpenShift SDN is no longer supported and this object is no longer used in any way by OpenShift.Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Specified by:
setMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getMtu
public Long getMtu()
mtu is the MTU for the overlay network. This should be 50 less than the MTU of the network connecting the nodes. It is normally autodetected by the cluster network operator.
-
setMtu
public void setMtu(Long mtu)
mtu is the MTU for the overlay network. This should be 50 less than the MTU of the network connecting the nodes. It is normally autodetected by the cluster network operator.
-
getNetwork
public String getNetwork()
network is a CIDR string specifying the global overlay network's L3 space
-
setNetwork
public void setNetwork(String network)
network is a CIDR string specifying the global overlay network's L3 space
-
getPluginName
public String getPluginName()
pluginName is the name of the network plugin being used
-
setPluginName
public void setPluginName(String pluginName)
pluginName is the name of the network plugin being used
-
getServiceNetwork
public String getServiceNetwork()
serviceNetwork is the CIDR range that Service IP addresses are allocated from
-
setServiceNetwork
public void setServiceNetwork(String serviceNetwork)
serviceNetwork is the CIDR range that Service IP addresses are allocated from
-
getVxlanPort
public Long getVxlanPort()
vxlanPort sets the VXLAN destination port used by the cluster. It is set by the master configuration file on startup and cannot be edited manually. Valid values for VXLANPort are integers 1-65535 inclusive and if unset defaults to 4789. Changing VXLANPort allows users to resolve issues between openshift SDN and other software trying to use the same VXLAN destination port.
-
setVxlanPort
public void setVxlanPort(Long vxlanPort)
vxlanPort sets the VXLAN destination port used by the cluster. It is set by the master configuration file on startup and cannot be edited manually. Valid values for VXLANPort are integers 1-65535 inclusive and if unset defaults to 4789. Changing VXLANPort allows users to resolve issues between openshift SDN and other software trying to use the same VXLAN destination port.
-
edit
public ClusterNetworkBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ClusterNetworkBuilder>
-
toBuilder
public ClusterNetworkBuilder toBuilder()
-
-