Class 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
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)