Description

Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.

Type

object

Specification

Property Type Description

.apiVersion

string

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

.kind

string

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

.metadata

ObjectMeta meta/v1

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

.spec

object

IngressSpec describes the Ingress the user wishes to exist.

.status

object

IngressStatus describe the current state of the Ingress.

.spec
Description

IngressSpec describes the Ingress the user wishes to exist.

Type

object

Property Type Description

backend

object

IngressBackend describes all endpoints for a given service and port.

rules

array

A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.

rules[]

object

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.

tls

array

TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.

tls[]

object

IngressTLS describes the transport layer security associated with an Ingress.

.spec.backend
Description

IngressBackend describes all endpoints for a given service and port.

Type

object

Required
  • serviceName

  • servicePort

Property Type Description

serviceName

string

Specifies the name of the referenced service.

servicePort

IntOrString util/intstr

Specifies the port of the referenced service.

.spec.rules
Description

A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.

Type

array

.spec.rules[]
Description

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.

Type

object

Property Type Description

host

string

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 the IP 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.

http

object

HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart>; → backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.

.spec.rules[].http
Description

HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart>; -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.

Type

object

Required
  • paths

Property Type Description

paths

array

A collection of paths that map requests to backends.

paths[]

object

HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.

.spec.rules[].http.paths
Description

A collection of paths that map requests to backends.

Type

array

.spec.rules[].http.paths[]
Description

HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.

Type

object

Required
  • backend

Property Type Description

backend

object

IngressBackend describes all endpoints for a given service and port.

path

string

Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.

.spec.rules[].http.paths[].backend
Description

IngressBackend describes all endpoints for a given service and port.

Type

object

Required
  • serviceName

  • servicePort

Property Type Description

serviceName

string

Specifies the name of the referenced service.

servicePort

IntOrString util/intstr

Specifies the port of the referenced service.

.spec.tls
Description

TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.

Type

array

.spec.tls[]
Description

IngressTLS describes the transport layer security associated with an Ingress.

Type

object

Property Type Description

hosts

array (string)

Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.

secretName

string

SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.

.status
Description

IngressStatus describe the current state of the Ingress.

Type

object

Property Type Description

loadBalancer

LoadBalancerStatus core/v1

LoadBalancer contains the current status of the load-balancer.