Class LoadBalancerStrategy
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.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 Summary
Constructors Constructor Description LoadBalancerStrategy()No args constructor for use in serializationLoadBalancerStrategy(List<String> allowedSourceRanges, String dnsManagementPolicy, ProviderLoadBalancerParameters providerParameters, String scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalancerStrategyBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAllowedSourceRanges()allowedSourceRanges specifies an allowlist of IP address ranges to which access to the load balancer should be restricted.StringgetDnsManagementPolicy()dnsManagementPolicy indicates if the lifecycle of the wildcard DNS record associated with the load balancer service will be managed by the ingress operator.ProviderLoadBalancerParametersgetProviderParameters()LoadBalancerStrategy holds parameters for a load balancer.StringgetScope()scope indicates the scope at which the load balancer is exposed.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllowedSourceRanges(List<String> allowedSourceRanges)allowedSourceRanges specifies an allowlist of IP address ranges to which access to the load balancer should be restricted.voidsetDnsManagementPolicy(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.voidsetProviderParameters(ProviderLoadBalancerParameters providerParameters)LoadBalancerStrategy holds parameters for a load balancer.voidsetScope(String scope)scope indicates the scope at which the load balancer is exposed.LoadBalancerStrategyBuildertoBuilder()
-
-
-
Constructor Detail
-
LoadBalancerStrategy
public LoadBalancerStrategy()
No args constructor for use in serialization
-
LoadBalancerStrategy
public LoadBalancerStrategy(List<String> allowedSourceRanges, String dnsManagementPolicy, ProviderLoadBalancerParameters providerParameters, String scope)
-
-
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.
-
getProviderParameters
public ProviderLoadBalancerParameters getProviderParameters()
LoadBalancerStrategy holds parameters for a load balancer.
-
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".
-
edit
public LoadBalancerStrategyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LoadBalancerStrategyBuilder>
-
toBuilder
public LoadBalancerStrategyBuilder toBuilder()
-
-