Class NetworkSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.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 top-level network configuration object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkSpec()No args constructor for use in serializationNetworkSpec(List<AdditionalNetworkDefinition> additionalNetworks, AdditionalRoutingCapabilities additionalRoutingCapabilities, List<ClusterNetworkEntry> clusterNetwork, DefaultNetworkDefinition defaultNetwork, Boolean deployKubeProxy, Boolean disableMultiNetwork, Boolean disableNetworkDiagnostics, ExportNetworkFlows exportNetworkFlows, ProxyConfig kubeProxyConfig, String logLevel, String managementState, NetworkMigration migration, Object observedConfig, String operatorLogLevel, List<String> serviceNetwork, Object unsupportedConfigOverrides, Boolean useMultiNetworkPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkSpecBuilderedit()List<AdditionalNetworkDefinition>getAdditionalNetworks()additionalNetworks is a list of extra networks to make available to pods when multiple networks are enabled.Map<String,Object>getAdditionalProperties()AdditionalRoutingCapabilitiesgetAdditionalRoutingCapabilities()NetworkSpec is the top-level network configuration object.List<ClusterNetworkEntry>getClusterNetwork()clusterNetwork is the IP address pool to use for pod IPs.DefaultNetworkDefinitiongetDefaultNetwork()NetworkSpec is the top-level network configuration object.BooleangetDeployKubeProxy()deployKubeProxy specifies whether or not a standalone kube-proxy should be deployed by the operator.BooleangetDisableMultiNetwork()disableMultiNetwork defaults to 'false' and this setting enables the pod multi-networking capability. disableMultiNetwork when set to 'true' at cluster install time does not install the components, typically the Multus CNI and the network-attachment-definition CRD, that enable the pod multi-networking capability.BooleangetDisableNetworkDiagnostics()disableNetworkDiagnostics specifies whether or not PodNetworkConnectivityCheck CRs from a test pod to every node, apiserver and LB should be disabled or not.ExportNetworkFlowsgetExportNetworkFlows()NetworkSpec is the top-level network configuration object.ProxyConfiggetKubeProxyConfig()NetworkSpec is the top-level network configuration object.StringgetLogLevel()logLevel is an intent based logging for an overall component.StringgetManagementState()managementState indicates whether and how the operator should manage the componentNetworkMigrationgetMigration()NetworkSpec is the top-level network configuration object.ObjectgetObservedConfig()NetworkSpec is the top-level network configuration object.StringgetOperatorLogLevel()operatorLogLevel is an intent based logging for the operator itself.List<String>getServiceNetwork()serviceNetwork is the ip address pool to use for Service IPs Currently, all existing network providers only support a single value here, but this is an array to allow for growth.ObjectgetUnsupportedConfigOverrides()NetworkSpec is the top-level network configuration object.BooleangetUseMultiNetworkPolicy()useMultiNetworkPolicy enables a controller which allows for MultiNetworkPolicy objects to be used on additional networks as created by Multus CNI.voidsetAdditionalNetworks(List<AdditionalNetworkDefinition> additionalNetworks)additionalNetworks is a list of extra networks to make available to pods when multiple networks are enabled.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAdditionalRoutingCapabilities(AdditionalRoutingCapabilities additionalRoutingCapabilities)NetworkSpec is the top-level network configuration object.voidsetClusterNetwork(List<ClusterNetworkEntry> clusterNetwork)clusterNetwork is the IP address pool to use for pod IPs.voidsetDefaultNetwork(DefaultNetworkDefinition defaultNetwork)NetworkSpec is the top-level network configuration object.voidsetDeployKubeProxy(Boolean deployKubeProxy)deployKubeProxy specifies whether or not a standalone kube-proxy should be deployed by the operator.voidsetDisableMultiNetwork(Boolean disableMultiNetwork)disableMultiNetwork defaults to 'false' and this setting enables the pod multi-networking capability. disableMultiNetwork when set to 'true' at cluster install time does not install the components, typically the Multus CNI and the network-attachment-definition CRD, that enable the pod multi-networking capability.voidsetDisableNetworkDiagnostics(Boolean disableNetworkDiagnostics)disableNetworkDiagnostics specifies whether or not PodNetworkConnectivityCheck CRs from a test pod to every node, apiserver and LB should be disabled or not.voidsetExportNetworkFlows(ExportNetworkFlows exportNetworkFlows)NetworkSpec is the top-level network configuration object.voidsetKubeProxyConfig(ProxyConfig kubeProxyConfig)NetworkSpec is the top-level network configuration object.voidsetLogLevel(String logLevel)logLevel is an intent based logging for an overall component.voidsetManagementState(String managementState)managementState indicates whether and how the operator should manage the componentvoidsetMigration(NetworkMigration migration)NetworkSpec is the top-level network configuration object.voidsetObservedConfig(Object observedConfig)NetworkSpec is the top-level network configuration object.voidsetOperatorLogLevel(String operatorLogLevel)operatorLogLevel is an intent based logging for the operator itself.voidsetServiceNetwork(List<String> serviceNetwork)serviceNetwork is the ip address pool to use for Service IPs Currently, all existing network providers only support a single value here, but this is an array to allow for growth.voidsetUnsupportedConfigOverrides(Object unsupportedConfigOverrides)NetworkSpec is the top-level network configuration object.voidsetUseMultiNetworkPolicy(Boolean useMultiNetworkPolicy)useMultiNetworkPolicy enables a controller which allows for MultiNetworkPolicy objects to be used on additional networks as created by Multus CNI.NetworkSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
NetworkSpec
public NetworkSpec()
No args constructor for use in serialization
-
NetworkSpec
public NetworkSpec(List<AdditionalNetworkDefinition> additionalNetworks, AdditionalRoutingCapabilities additionalRoutingCapabilities, List<ClusterNetworkEntry> clusterNetwork, DefaultNetworkDefinition defaultNetwork, Boolean deployKubeProxy, Boolean disableMultiNetwork, Boolean disableNetworkDiagnostics, ExportNetworkFlows exportNetworkFlows, ProxyConfig kubeProxyConfig, String logLevel, String managementState, NetworkMigration migration, Object observedConfig, String operatorLogLevel, List<String> serviceNetwork, Object unsupportedConfigOverrides, Boolean useMultiNetworkPolicy)
-
-
Method Detail
-
getAdditionalNetworks
public List<AdditionalNetworkDefinition> getAdditionalNetworks()
additionalNetworks is a list of extra networks to make available to pods when multiple networks are enabled.
-
setAdditionalNetworks
public void setAdditionalNetworks(List<AdditionalNetworkDefinition> additionalNetworks)
additionalNetworks is a list of extra networks to make available to pods when multiple networks are enabled.
-
getAdditionalRoutingCapabilities
public AdditionalRoutingCapabilities getAdditionalRoutingCapabilities()
NetworkSpec is the top-level network configuration object.
-
setAdditionalRoutingCapabilities
public void setAdditionalRoutingCapabilities(AdditionalRoutingCapabilities additionalRoutingCapabilities)
NetworkSpec is the top-level network configuration object.
-
getClusterNetwork
public List<ClusterNetworkEntry> getClusterNetwork()
clusterNetwork is the IP address pool to use for pod IPs. Some network providers support multiple ClusterNetworks. Others only support one. This is equivalent to the cluster-cidr.
-
setClusterNetwork
public void setClusterNetwork(List<ClusterNetworkEntry> clusterNetwork)
clusterNetwork is the IP address pool to use for pod IPs. Some network providers support multiple ClusterNetworks. Others only support one. This is equivalent to the cluster-cidr.
-
getDefaultNetwork
public DefaultNetworkDefinition getDefaultNetwork()
NetworkSpec is the top-level network configuration object.
-
setDefaultNetwork
public void setDefaultNetwork(DefaultNetworkDefinition defaultNetwork)
NetworkSpec is the top-level network configuration object.
-
getDeployKubeProxy
public Boolean getDeployKubeProxy()
deployKubeProxy specifies whether or not a standalone kube-proxy should be deployed by the operator. Some network providers include kube-proxy or similar functionality. If unset, the plugin will attempt to select the correct value, which is false when ovn-kubernetes is used and true otherwise.
-
setDeployKubeProxy
public void setDeployKubeProxy(Boolean deployKubeProxy)
deployKubeProxy specifies whether or not a standalone kube-proxy should be deployed by the operator. Some network providers include kube-proxy or similar functionality. If unset, the plugin will attempt to select the correct value, which is false when ovn-kubernetes is used and true otherwise.
-
getDisableMultiNetwork
public Boolean getDisableMultiNetwork()
disableMultiNetwork defaults to 'false' and this setting enables the pod multi-networking capability. disableMultiNetwork when set to 'true' at cluster install time does not install the components, typically the Multus CNI and the network-attachment-definition CRD, that enable the pod multi-networking capability. Setting the parameter to 'true' might be useful when you need install third-party CNI plugins, but these plugins are not supported by Red Hat. Changing the parameter value as a postinstallation cluster task has no effect.
-
setDisableMultiNetwork
public void setDisableMultiNetwork(Boolean disableMultiNetwork)
disableMultiNetwork defaults to 'false' and this setting enables the pod multi-networking capability. disableMultiNetwork when set to 'true' at cluster install time does not install the components, typically the Multus CNI and the network-attachment-definition CRD, that enable the pod multi-networking capability. Setting the parameter to 'true' might be useful when you need install third-party CNI plugins, but these plugins are not supported by Red Hat. Changing the parameter value as a postinstallation cluster task has no effect.
-
getDisableNetworkDiagnostics
public Boolean getDisableNetworkDiagnostics()
disableNetworkDiagnostics specifies whether or not PodNetworkConnectivityCheck CRs from a test pod to every node, apiserver and LB should be disabled or not. If unset, this property defaults to 'false' and network diagnostics is enabled. Setting this to 'true' would reduce the additional load of the pods performing the checks.
-
setDisableNetworkDiagnostics
public void setDisableNetworkDiagnostics(Boolean disableNetworkDiagnostics)
disableNetworkDiagnostics specifies whether or not PodNetworkConnectivityCheck CRs from a test pod to every node, apiserver and LB should be disabled or not. If unset, this property defaults to 'false' and network diagnostics is enabled. Setting this to 'true' would reduce the additional load of the pods performing the checks.
-
getExportNetworkFlows
public ExportNetworkFlows getExportNetworkFlows()
NetworkSpec is the top-level network configuration object.
-
setExportNetworkFlows
public void setExportNetworkFlows(ExportNetworkFlows exportNetworkFlows)
NetworkSpec is the top-level network configuration object.
-
getKubeProxyConfig
public ProxyConfig getKubeProxyConfig()
NetworkSpec is the top-level network configuration object.
-
setKubeProxyConfig
public void setKubeProxyConfig(ProxyConfig kubeProxyConfig)
NetworkSpec is the top-level network configuration object.
-
getLogLevel
public String getLogLevel()
logLevel is an intent based logging for an overall component. It does not give fine grained control, but it is a simple way to manage coarse grained logging choices that operators have to interpret for their operands.Valid values are: "Normal", "Debug", "Trace", "TraceAll". Defaults to "Normal".
-
setLogLevel
public void setLogLevel(String logLevel)
logLevel is an intent based logging for an overall component. It does not give fine grained control, but it is a simple way to manage coarse grained logging choices that operators have to interpret for their operands.Valid values are: "Normal", "Debug", "Trace", "TraceAll". Defaults to "Normal".
-
getManagementState
public String getManagementState()
managementState indicates whether and how the operator should manage the component
-
setManagementState
public void setManagementState(String managementState)
managementState indicates whether and how the operator should manage the component
-
getMigration
public NetworkMigration getMigration()
NetworkSpec is the top-level network configuration object.
-
setMigration
public void setMigration(NetworkMigration migration)
NetworkSpec is the top-level network configuration object.
-
getObservedConfig
public Object getObservedConfig()
NetworkSpec is the top-level network configuration object.
-
setObservedConfig
public void setObservedConfig(Object observedConfig)
NetworkSpec is the top-level network configuration object.
-
getOperatorLogLevel
public String getOperatorLogLevel()
operatorLogLevel is an intent based logging for the operator itself. It does not give fine grained control, but it is a simple way to manage coarse grained logging choices that operators have to interpret for themselves.Valid values are: "Normal", "Debug", "Trace", "TraceAll". Defaults to "Normal".
-
setOperatorLogLevel
public void setOperatorLogLevel(String operatorLogLevel)
operatorLogLevel is an intent based logging for the operator itself. It does not give fine grained control, but it is a simple way to manage coarse grained logging choices that operators have to interpret for themselves.Valid values are: "Normal", "Debug", "Trace", "TraceAll". Defaults to "Normal".
-
getServiceNetwork
public List<String> getServiceNetwork()
serviceNetwork is the ip address pool to use for Service IPs Currently, all existing network providers only support a single value here, but this is an array to allow for growth.
-
setServiceNetwork
public void setServiceNetwork(List<String> serviceNetwork)
serviceNetwork is the ip address pool to use for Service IPs Currently, all existing network providers only support a single value here, but this is an array to allow for growth.
-
getUnsupportedConfigOverrides
public Object getUnsupportedConfigOverrides()
NetworkSpec is the top-level network configuration object.
-
setUnsupportedConfigOverrides
public void setUnsupportedConfigOverrides(Object unsupportedConfigOverrides)
NetworkSpec is the top-level network configuration object.
-
getUseMultiNetworkPolicy
public Boolean getUseMultiNetworkPolicy()
useMultiNetworkPolicy enables a controller which allows for MultiNetworkPolicy objects to be used on additional networks as created by Multus CNI. MultiNetworkPolicy are similar to NetworkPolicy objects, but NetworkPolicy objects only apply to the primary interface. With MultiNetworkPolicy, you can control the traffic that a pod can receive over the secondary interfaces. If unset, this property defaults to 'false' and MultiNetworkPolicy objects are ignored. If 'disableMultiNetwork' is 'true' then the value of this field is ignored.
-
setUseMultiNetworkPolicy
public void setUseMultiNetworkPolicy(Boolean useMultiNetworkPolicy)
useMultiNetworkPolicy enables a controller which allows for MultiNetworkPolicy objects to be used on additional networks as created by Multus CNI. MultiNetworkPolicy are similar to NetworkPolicy objects, but NetworkPolicy objects only apply to the primary interface. With MultiNetworkPolicy, you can control the traffic that a pod can receive over the secondary interfaces. If unset, this property defaults to 'false' and MultiNetworkPolicy objects are ignored. If 'disableMultiNetwork' is 'true' then the value of this field is ignored.
-
edit
public NetworkSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NetworkSpecBuilder>
-
toBuilder
public NetworkSpecBuilder toBuilder()
-
-