Skip to main content

ingress

Source: base/pkg/kusion_models/kube/frontend/ingress/ingress.k

Schema Ingress

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.

Base Schema

@base.pkg.kusion_models.kube.frontend.common.Metadata

Attributes

Name and DescriptionTypeDefault ValueRequired
rules
A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.
[v1.IngressRule]Undefinedoptional

Examples

ingress.Ingress {
name = "example-ingress"
rules = [
{
http.paths = [
{
path = "/apple"
pathType = "Prefix"
backend.service: {
name = "app-service"
port.number = 5678
}
}
]
}
]
}