Class Route

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class Route
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    A route allows developers to expose services through an HTTP(S) aware load balancing and proxy layer via a public DNS entry. The route may further specify TLS options and a certificate, or specify a public CNAME that the router should also accept for HTTP and HTTPS traffic. An administrator typically configures their router to be visible outside the cluster firewall, and may also add additional security, caching, or traffic controls on the service content. Routers usually talk directly to the service endpoints.


    Once a route is created, the `host` field may not be changed. Generally, routers use the oldest route with a given host when resolving conflicts.


    Routers are subject to additional customization and may support additional controls via the annotations field.


    Because administrators may configure multiple routers, the route status field is used to return information to clients about the names and states of the route under each router. If a client chooses a duplicate name, for instance, the route status conditions are used to indicate the route cannot be chosen.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Route.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Route()  
      Route​(java.lang.String apiVersion, java.lang.String kind, com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata, @NonNull RouteSpec spec, RouteStatus status)  
    • Constructor Detail

      • Route

        public Route​(java.lang.String apiVersion,
                     java.lang.String kind,
                     com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata,
                     @NonNull
                     @NonNull RouteSpec spec,
                     RouteStatus status)
      • Route

        public Route()
    • Method Detail

      • getApiVersion

        public java.lang.String getApiVersion()
        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
      • getKind

        public java.lang.String getKind()
        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      • getMetadata

        public com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta getMetadata()
      • getSpec

        @NonNull
        public @NonNull RouteSpec getSpec()
      • setApiVersion

        public void setApiVersion​(java.lang.String apiVersion)
        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
      • setKind

        public void setKind​(java.lang.String kind)
        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      • setMetadata

        public void setMetadata​(com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata)
      • setSpec

        public void setSpec​(@NonNull
                            @NonNull RouteSpec spec)
      • setStatus

        public void setStatus​(RouteStatus status)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object