Ingress

skuber.networking.v1.Ingress
See theIngress companion object
case class Ingress(kind: String, apiVersion: String, metadata: ObjectMeta, spec: Option[Spec], status: Option[Status]) extends ObjectResource

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class TypeMeta
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addAnnotations(newAnnos: Map[String, String]): Ingress
def addHttpRule(host: String, pathType: PathType, pathsMap: Map[String, String]): Ingress

Fluent API method for building out ingress rules e.g.

Fluent API method for building out ingress rules e.g.

val ingress = Ingress("microservices").
 addHttpRule("foo.bar.com",
             ImplementationSpecific,
             Map("/order" -> "orderService:80",
                 "inventory" -> "inventoryService:80")).
 addHttpRule("foo1.bar.com",
              Map("/ship" -> "orderService:80",
                  "inventory" -> "inventoryService:80")).

Attributes

def addHttpRule(pathType: PathType, pathsMap: Map[String, String]): Ingress

Fluent API method for building out ingress rules without host e.g.

Fluent API method for building out ingress rules without host e.g.

val ingress = Ingress("microservices").
 addHttpRule(ImplementationSpecific,
             Map("/order" -> "orderService:80",
                 "inventory" -> "inventoryService:80")).
 addHttpRule(ImplementationSpecific,
             Map("/ship" -> "orderService:80",
                 "inventory" -> "inventoryService:80")).

Attributes

def addHttpRule(host: String, pathType: PathType, pathsMap: (String, String)*): Ingress

Fluent API method for building out ingress rules e.g.

Fluent API method for building out ingress rules e.g.

val ingress =
 Ingress("microservices")
   .addHttpRule("foo.bar.com",
                ImplementationSpecific,
                "/order" -> "orderService:80",
                "inventory" -> "inventoryService:80")
   .addHttpRule("foo1.bar.com",
                ImplementationSpecific,
                "/ship" -> "orderService:80",
                "inventory" -> "inventoryService:80").

Attributes

def addHttpRule(pathType: PathType, pathsMap: (String, String)*): Ingress

Fluent API method for building out ingress rules without host e.g.

Fluent API method for building out ingress rules without host e.g.

val ingress =
 Ingress("microservices")
   .addHttpRule(ImplementationSpecific,
                "/order" -> "orderService:80",
                "inventory" -> "inventoryService:80")
   .addHttpRule(ImplementationSpecific,
                "/ship" -> "orderService:80",
                "inventory" -> "inventoryService:80").

Attributes

def addHttpRule(host: Option[String], pathType: PathType, pathsMap: Map[String, String]): Ingress

Fluent API method for building out ingress rules e.g.

Fluent API method for building out ingress rules e.g.

val ingress =
 Ingress("microservices")
   .addHttpRule(Some("foo.bar.com"),
                Exact,
                Map("/order" -> "orderService:80",
                    "inventory" -> "inventoryService:80"))
   .addHttpRule(None,
                ImplementationSpecific,
                Map("/ship" -> "orderService:80",
                    "inventory" -> "inventoryService:80")).

Attributes

def withDefaultBackendService(serviceNameAndPort: String): Ingress

set the default backend i.e. if no ingress rule matches the incoming traffic then it gets routed to the specified service

set the default backend i.e. if no ingress rule matches the incoming traffic then it gets routed to the specified service

Value parameters

serviceNameAndPort
  • service name and port as 'serviceName:servicePort'

Attributes

Returns

copy of this Ingress with default backend set

def withDefaultBackendService(serviceName: String, servicePort: NameablePort): Ingress

set the default backend i.e. if no ingress rule matches the incoming traffic then it gets routed to the specified service

set the default backend i.e. if no ingress rule matches the incoming traffic then it gets routed to the specified service

Value parameters

serviceName
  • service name
servicePort
  • service port

Attributes

Returns

copy of this Ingress with default backend set

Inherited methods

def name: String

Attributes

Inherited from:
ObjectResource
def ns: String

Attributes

Inherited from:
ObjectResource
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def resourceVersion: String

Attributes

Inherited from:
ObjectResource

Concrete fields

lazy val copySpec: Spec