Class IngressRule
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.extensions.IngressRule
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<IngressRuleBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class IngressRule extends Object implements io.fabric8.kubernetes.api.builder.Editable<IngressRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResourceIngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IngressRule()No args constructor for use in serializationIngressRule(String host, HTTPIngressRuleValue http)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IngressRuleBuilderedit()Map<String,Object>getAdditionalProperties()StringgetHost()Host is the fully qualified domain name of a network host, as defined by RFC 3986.HTTPIngressRuleValuegetHttp()IngressRule represents the rules mapping the paths under a specified host to the related backend services.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetHost(String host)Host is the fully qualified domain name of a network host, as defined by RFC 3986.voidsetHttp(HTTPIngressRuleValue http)IngressRule represents the rules mapping the paths under a specified host to the related backend services.IngressRuleBuildertoBuilder()
-
-
-
Constructor Detail
-
IngressRule
public IngressRule()
No args constructor for use in serialization
-
IngressRule
public IngressRule(String host, HTTPIngressRuleValue http)
-
-
Method Detail
-
getHost
public String getHost()
Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to theIP in the Spec of the parent Ingress.
2. The `:` delimiter is not respected because ports are not allowed.
Currently the port of an Ingress is implicitly :80 for http and
:443 for https.
Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
-
setHost
public void setHost(String host)
Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to theIP in the Spec of the parent Ingress.
2. The `:` delimiter is not respected because ports are not allowed.
Currently the port of an Ingress is implicitly :80 for http and
:443 for https.
Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
-
getHttp
public HTTPIngressRuleValue getHttp()
IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.
-
setHttp
public void setHttp(HTTPIngressRuleValue http)
IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.
-
edit
public IngressRuleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<IngressRuleBuilder>
-
toBuilder
public IngressRuleBuilder toBuilder()
-
-