Package io.fabric8.kubernetes.api.model
Class LoadBalancerIngress
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.LoadBalancerIngress
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<LoadBalancerIngressBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class LoadBalancerIngress extends Object implements io.fabric8.kubernetes.api.builder.Editable<LoadBalancerIngressBuilder>, KubernetesResource
LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoadBalancerIngress()No args constructor for use in serializationLoadBalancerIngress(String hostname, String ip, String ipMode, List<PortStatus> ports)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalancerIngressBuilderedit()Map<String,Object>getAdditionalProperties()StringgetHostname()Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)StringgetIp()IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)StringgetIpMode()IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.List<PortStatus>getPorts()Ports is a list of records of service ports If used, every port defined in the service should have an entry in itvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetHostname(String hostname)Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)voidsetIp(String ip)IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)voidsetIpMode(String ipMode)IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.voidsetPorts(List<PortStatus> ports)Ports is a list of records of service ports If used, every port defined in the service should have an entry in itLoadBalancerIngressBuildertoBuilder()
-
-
-
Constructor Detail
-
LoadBalancerIngress
public LoadBalancerIngress()
No args constructor for use in serialization
-
LoadBalancerIngress
public LoadBalancerIngress(String hostname, String ip, String ipMode, List<PortStatus> ports)
-
-
Method Detail
-
getHostname
public String getHostname()
Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)
-
setHostname
public void setHostname(String hostname)
Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)
-
getIp
public String getIp()
IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)
-
setIp
public void setIp(String ip)
IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)
-
getIpMode
public String getIpMode()
IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to "VIP" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to "Proxy" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.
-
setIpMode
public void setIpMode(String ipMode)
IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to "VIP" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to "Proxy" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.
-
getPorts
public List<PortStatus> getPorts()
Ports is a list of records of service ports If used, every port defined in the service should have an entry in it
-
setPorts
public void setPorts(List<PortStatus> ports)
Ports is a list of records of service ports If used, every port defined in the service should have an entry in it
-
edit
public LoadBalancerIngressBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LoadBalancerIngressBuilder>
-
toBuilder
public LoadBalancerIngressBuilder toBuilder()
-
-