Class LoadBalancerStrategy

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<LoadBalancerStrategyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class LoadBalancerStrategy
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<LoadBalancerStrategyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    LoadBalancerStrategy holds parameters for a load balancer.
    See Also:
    Serialized Form
    • Constructor Detail

      • LoadBalancerStrategy

        public LoadBalancerStrategy()
        No args constructor for use in serialization
    • Method Detail

      • getAllowedSourceRanges

        public List<String> getAllowedSourceRanges()
        allowedSourceRanges specifies an allowlist of IP address ranges to which access to the load balancer should be restricted. Each range must be specified using CIDR notation (e.g. "10.0.0.0/8" or "fd00::/8"). If no range is specified, "0.0.0.0/0" for IPv4 and "::/0" for IPv6 are used by default, which allows all source addresses.


        To facilitate migration from earlier versions of OpenShift that did not have the allowedSourceRanges field, you may set the service.beta.kubernetes.io/load-balancer-source-ranges annotation on the "router-<ingresscontroller name>" service in the "openshift-ingress" namespace, and this annotation will take effect if allowedSourceRanges is empty on OpenShift 4.12.

      • setAllowedSourceRanges

        public void setAllowedSourceRanges​(List<String> allowedSourceRanges)
        allowedSourceRanges specifies an allowlist of IP address ranges to which access to the load balancer should be restricted. Each range must be specified using CIDR notation (e.g. "10.0.0.0/8" or "fd00::/8"). If no range is specified, "0.0.0.0/0" for IPv4 and "::/0" for IPv6 are used by default, which allows all source addresses.


        To facilitate migration from earlier versions of OpenShift that did not have the allowedSourceRanges field, you may set the service.beta.kubernetes.io/load-balancer-source-ranges annotation on the "router-<ingresscontroller name>" service in the "openshift-ingress" namespace, and this annotation will take effect if allowedSourceRanges is empty on OpenShift 4.12.

      • getDnsManagementPolicy

        public String getDnsManagementPolicy()
        dnsManagementPolicy indicates if the lifecycle of the wildcard DNS record associated with the load balancer service will be managed by the ingress operator. It defaults to Managed. Valid values are: Managed and Unmanaged.
      • setDnsManagementPolicy

        public void setDnsManagementPolicy​(String dnsManagementPolicy)
        dnsManagementPolicy indicates if the lifecycle of the wildcard DNS record associated with the load balancer service will be managed by the ingress operator. It defaults to Managed. Valid values are: Managed and Unmanaged.
      • setProviderParameters

        public void setProviderParameters​(ProviderLoadBalancerParameters providerParameters)
        LoadBalancerStrategy holds parameters for a load balancer.
      • getScope

        public String getScope()
        scope indicates the scope at which the load balancer is exposed. Possible values are "External" and "Internal".
      • setScope

        public void setScope​(String scope)
        scope indicates the scope at which the load balancer is exposed. Possible values are "External" and "Internal".
      • getAdditionalProperties

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

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

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