Class NetworkSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.NetworkSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NetworkSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NetworkSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<NetworkSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NetworkSpec is the desired network configuration. As a general rule, this SHOULD NOT be read directly. Instead, you should consume the NetworkStatus, as it indicates the currently deployed configuration. Currently, most spec fields are immutable after installation. Please view the individual ones for further details on each.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkSpec()No args constructor for use in serializationNetworkSpec(List<ClusterNetworkEntry> clusterNetwork, ExternalIPConfig externalIP, NetworkDiagnostics networkDiagnostics, String networkType, List<String> serviceNetwork, String serviceNodePortRange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<ClusterNetworkEntry>getClusterNetwork()IP address pool to use for pod IPs.ExternalIPConfiggetExternalIP()NetworkSpec is the desired network configuration.NetworkDiagnosticsgetNetworkDiagnostics()NetworkSpec is the desired network configuration.StringgetNetworkType()networkType is the plugin that is to be deployed (e.g.List<String>getServiceNetwork()IP address pool for services.StringgetServiceNodePortRange()The port range allowed for Services of type NodePort.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetClusterNetwork(List<ClusterNetworkEntry> clusterNetwork)IP address pool to use for pod IPs.voidsetExternalIP(ExternalIPConfig externalIP)NetworkSpec is the desired network configuration.voidsetNetworkDiagnostics(NetworkDiagnostics networkDiagnostics)NetworkSpec is the desired network configuration.voidsetNetworkType(String networkType)networkType is the plugin that is to be deployed (e.g.voidsetServiceNetwork(List<String> serviceNetwork)IP address pool for services.voidsetServiceNodePortRange(String serviceNodePortRange)The port range allowed for Services of type NodePort.NetworkSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
NetworkSpec
public NetworkSpec()
No args constructor for use in serialization
-
NetworkSpec
public NetworkSpec(List<ClusterNetworkEntry> clusterNetwork, ExternalIPConfig externalIP, NetworkDiagnostics networkDiagnostics, String networkType, List<String> serviceNetwork, String serviceNodePortRange)
-
-
Method Detail
-
getClusterNetwork
public List<ClusterNetworkEntry> getClusterNetwork()
IP address pool to use for pod IPs. This field is immutable after installation.
-
setClusterNetwork
public void setClusterNetwork(List<ClusterNetworkEntry> clusterNetwork)
IP address pool to use for pod IPs. This field is immutable after installation.
-
getExternalIP
public ExternalIPConfig getExternalIP()
NetworkSpec is the desired network configuration. As a general rule, this SHOULD NOT be read directly. Instead, you should consume the NetworkStatus, as it indicates the currently deployed configuration. Currently, most spec fields are immutable after installation. Please view the individual ones for further details on each.
-
setExternalIP
public void setExternalIP(ExternalIPConfig externalIP)
NetworkSpec is the desired network configuration. As a general rule, this SHOULD NOT be read directly. Instead, you should consume the NetworkStatus, as it indicates the currently deployed configuration. Currently, most spec fields are immutable after installation. Please view the individual ones for further details on each.
-
getNetworkDiagnostics
public NetworkDiagnostics getNetworkDiagnostics()
NetworkSpec is the desired network configuration. As a general rule, this SHOULD NOT be read directly. Instead, you should consume the NetworkStatus, as it indicates the currently deployed configuration. Currently, most spec fields are immutable after installation. Please view the individual ones for further details on each.
-
setNetworkDiagnostics
public void setNetworkDiagnostics(NetworkDiagnostics networkDiagnostics)
NetworkSpec is the desired network configuration. As a general rule, this SHOULD NOT be read directly. Instead, you should consume the NetworkStatus, as it indicates the currently deployed configuration. Currently, most spec fields are immutable after installation. Please view the individual ones for further details on each.
-
getNetworkType
public String getNetworkType()
networkType is the plugin that is to be deployed (e.g. OVNKubernetes). This should match a value that the cluster-network-operator understands, or else no networking will be installed. Currently supported values are: - OVNKubernetes This field is immutable after installation.
-
setNetworkType
public void setNetworkType(String networkType)
networkType is the plugin that is to be deployed (e.g. OVNKubernetes). This should match a value that the cluster-network-operator understands, or else no networking will be installed. Currently supported values are: - OVNKubernetes This field is immutable after installation.
-
getServiceNetwork
public List<String> getServiceNetwork()
IP address pool for services. Currently, we only support a single entry here. This field is immutable after installation.
-
setServiceNetwork
public void setServiceNetwork(List<String> serviceNetwork)
IP address pool for services. Currently, we only support a single entry here. This field is immutable after installation.
-
getServiceNodePortRange
public String getServiceNodePortRange()
The port range allowed for Services of type NodePort. If not specified, the default of 30000-32767 will be used. Such Services without a NodePort specified will have one automatically allocated from this range. This parameter can be updated after the cluster is installed.
-
setServiceNodePortRange
public void setServiceNodePortRange(String serviceNodePortRange)
The port range allowed for Services of type NodePort. If not specified, the default of 30000-32767 will be used. Such Services without a NodePort specified will have one automatically allocated from this range. This parameter can be updated after the cluster is installed.
-
edit
public NetworkSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NetworkSpecBuilder>
-
toBuilder
public NetworkSpecBuilder toBuilder()
-
-