Class RouteSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.RouteSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RouteSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RouteSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<RouteSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to. Requests are distributed among the backends depending on the weights assigned to each backend. When using roundrobin scheduling the portion of requests that go to each backend is the backend weight divided by the sum of all of the backend weights. When the backend has more than one endpoint the requests that end up on the backend are roundrobin distributed among the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests to the backend. If all weights are zero the route will be considered to have no backends and return a standard 503 response.The `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RouteSpec()No args constructor for use in serializationRouteSpec(List<RouteTargetReference> alternateBackends, String host, RouteHTTPHeaders httpHeaders, String path, RoutePort port, String subdomain, TLSConfig tls, RouteTargetReference to, String wildcardPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<RouteTargetReference>getAlternateBackends()alternateBackends allows up to 3 additional backends to be assigned to the route.StringgetHost()host is an alias/DNS that points to the service.RouteHTTPHeadersgetHttpHeaders()RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to.StringgetPath()path that the router watches for, to route traffic for to the service.RoutePortgetPort()RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to.StringgetSubdomain()subdomain is a DNS subdomain that is requested within the ingress controller's domain (as a subdomain).TLSConfiggetTls()RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to.RouteTargetReferencegetTo()RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to.StringgetWildcardPolicy()Wildcard policy if any for the route.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAlternateBackends(List<RouteTargetReference> alternateBackends)alternateBackends allows up to 3 additional backends to be assigned to the route.voidsetHost(String host)host is an alias/DNS that points to the service.voidsetHttpHeaders(RouteHTTPHeaders httpHeaders)RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to.voidsetPath(String path)path that the router watches for, to route traffic for to the service.voidsetPort(RoutePort port)RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to.voidsetSubdomain(String subdomain)subdomain is a DNS subdomain that is requested within the ingress controller's domain (as a subdomain).voidsetTls(TLSConfig tls)RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to.voidsetTo(RouteTargetReference to)RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to.voidsetWildcardPolicy(String wildcardPolicy)Wildcard policy if any for the route.RouteSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
RouteSpec
public RouteSpec()
No args constructor for use in serialization
-
RouteSpec
public RouteSpec(List<RouteTargetReference> alternateBackends, String host, RouteHTTPHeaders httpHeaders, String path, RoutePort port, String subdomain, TLSConfig tls, RouteTargetReference to, String wildcardPolicy)
-
-
Method Detail
-
getAlternateBackends
public List<RouteTargetReference> getAlternateBackends()
alternateBackends allows up to 3 additional backends to be assigned to the route. Only the Service kind is allowed, and it will be defaulted to Service. Use the weight field in RouteTargetReference object to specify relative preference.
-
setAlternateBackends
public void setAlternateBackends(List<RouteTargetReference> alternateBackends)
alternateBackends allows up to 3 additional backends to be assigned to the route. Only the Service kind is allowed, and it will be defaulted to Service. Use the weight field in RouteTargetReference object to specify relative preference.
-
getHost
public String getHost()
host is an alias/DNS that points to the service. Optional. If not specified a route name will typically be automatically chosen. Must follow DNS952 subdomain conventions.
-
setHost
public void setHost(String host)
host is an alias/DNS that points to the service. Optional. If not specified a route name will typically be automatically chosen. Must follow DNS952 subdomain conventions.
-
getHttpHeaders
public RouteHTTPHeaders getHttpHeaders()
RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to. Requests are distributed among the backends depending on the weights assigned to each backend. When using roundrobin scheduling the portion of requests that go to each backend is the backend weight divided by the sum of all of the backend weights. When the backend has more than one endpoint the requests that end up on the backend are roundrobin distributed among the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests to the backend. If all weights are zero the route will be considered to have no backends and return a standard 503 response.The `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.
-
setHttpHeaders
public void setHttpHeaders(RouteHTTPHeaders httpHeaders)
RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to. Requests are distributed among the backends depending on the weights assigned to each backend. When using roundrobin scheduling the portion of requests that go to each backend is the backend weight divided by the sum of all of the backend weights. When the backend has more than one endpoint the requests that end up on the backend are roundrobin distributed among the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests to the backend. If all weights are zero the route will be considered to have no backends and return a standard 503 response.The `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.
-
getPath
public String getPath()
path that the router watches for, to route traffic for to the service. Optional
-
setPath
public void setPath(String path)
path that the router watches for, to route traffic for to the service. Optional
-
getPort
public RoutePort getPort()
RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to. Requests are distributed among the backends depending on the weights assigned to each backend. When using roundrobin scheduling the portion of requests that go to each backend is the backend weight divided by the sum of all of the backend weights. When the backend has more than one endpoint the requests that end up on the backend are roundrobin distributed among the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests to the backend. If all weights are zero the route will be considered to have no backends and return a standard 503 response.The `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.
-
setPort
public void setPort(RoutePort port)
RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to. Requests are distributed among the backends depending on the weights assigned to each backend. When using roundrobin scheduling the portion of requests that go to each backend is the backend weight divided by the sum of all of the backend weights. When the backend has more than one endpoint the requests that end up on the backend are roundrobin distributed among the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests to the backend. If all weights are zero the route will be considered to have no backends and return a standard 503 response.The `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.
-
getSubdomain
public String getSubdomain()
subdomain is a DNS subdomain that is requested within the ingress controller's domain (as a subdomain). If host is set this field is ignored. An ingress controller may choose to ignore this suggested name, in which case the controller will report the assigned name in the status.ingress array or refuse to admit the route. If this value is set and the server does not support this field host will be populated automatically. Otherwise host is left empty. The field may have multiple parts separated by a dot, but not all ingress controllers may honor the request. This field may not be changed after creation except by a user with the update routes/custom-host permission.Example: subdomain `frontend` automatically receives the router subdomain `apps.mycluster.com` to have a full hostname `frontend.apps.mycluster.com`.
-
setSubdomain
public void setSubdomain(String subdomain)
subdomain is a DNS subdomain that is requested within the ingress controller's domain (as a subdomain). If host is set this field is ignored. An ingress controller may choose to ignore this suggested name, in which case the controller will report the assigned name in the status.ingress array or refuse to admit the route. If this value is set and the server does not support this field host will be populated automatically. Otherwise host is left empty. The field may have multiple parts separated by a dot, but not all ingress controllers may honor the request. This field may not be changed after creation except by a user with the update routes/custom-host permission.Example: subdomain `frontend` automatically receives the router subdomain `apps.mycluster.com` to have a full hostname `frontend.apps.mycluster.com`.
-
getTls
public TLSConfig getTls()
RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to. Requests are distributed among the backends depending on the weights assigned to each backend. When using roundrobin scheduling the portion of requests that go to each backend is the backend weight divided by the sum of all of the backend weights. When the backend has more than one endpoint the requests that end up on the backend are roundrobin distributed among the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests to the backend. If all weights are zero the route will be considered to have no backends and return a standard 503 response.The `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.
-
setTls
public void setTls(TLSConfig tls)
RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to. Requests are distributed among the backends depending on the weights assigned to each backend. When using roundrobin scheduling the portion of requests that go to each backend is the backend weight divided by the sum of all of the backend weights. When the backend has more than one endpoint the requests that end up on the backend are roundrobin distributed among the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests to the backend. If all weights are zero the route will be considered to have no backends and return a standard 503 response.The `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.
-
getTo
public RouteTargetReference getTo()
RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to. Requests are distributed among the backends depending on the weights assigned to each backend. When using roundrobin scheduling the portion of requests that go to each backend is the backend weight divided by the sum of all of the backend weights. When the backend has more than one endpoint the requests that end up on the backend are roundrobin distributed among the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests to the backend. If all weights are zero the route will be considered to have no backends and return a standard 503 response.The `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.
-
setTo
public void setTo(RouteTargetReference to)
RouteSpec describes the hostname or path the route exposes, any security information, and one to four backends (services) the route points to. Requests are distributed among the backends depending on the weights assigned to each backend. When using roundrobin scheduling the portion of requests that go to each backend is the backend weight divided by the sum of all of the backend weights. When the backend has more than one endpoint the requests that end up on the backend are roundrobin distributed among the endpoints. Weights are between 0 and 256 with default 100. Weight 0 causes no requests to the backend. If all weights are zero the route will be considered to have no backends and return a standard 503 response.The `tls` field is optional and allows specific certificates or behavior for the route. Routers typically configure a default certificate on a wildcard domain to terminate routes without explicit certificates, but custom hostnames usually must choose passthrough (send traffic directly to the backend via the TLS Server-Name- Indication field) or provide a certificate.
-
getWildcardPolicy
public String getWildcardPolicy()
Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed.
-
setWildcardPolicy
public void setWildcardPolicy(String wildcardPolicy)
Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed.
-
edit
public RouteSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RouteSpecBuilder>
-
toBuilder
public RouteSpecBuilder toBuilder()
-
-