Show / Hide Table of Contents

Class V1IngressRule

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.

Inheritance
object
V1IngressRule
Implements
IEquatable<V1IngressRule>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1IngressRule : IEquatable<V1IngressRule>

Constructors

View Source

V1IngressRule()

Declaration
public V1IngressRule()
View Source

V1IngressRule(V1IngressRule)

Declaration
protected V1IngressRule(V1IngressRule original)
Parameters
Type Name Description
V1IngressRule original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

Host

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 RFC 3986: 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.

host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. ".foo.com"). The wildcard character '' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.

Declaration
[JsonPropertyName("host")]
public string Host { get; set; }
Property Value
Type Description
string
View Source

Http

Declaration
[JsonPropertyName("http")]
public V1HTTPIngressRuleValue Http { get; set; }
Property Value
Type Description
V1HTTPIngressRuleValue

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1IngressRule?)

Declaration
public virtual bool Equals(V1IngressRule? other)
Parameters
Type Name Description
V1IngressRule other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1IngressRule?, V1IngressRule?)

Declaration
public static bool operator ==(V1IngressRule? left, V1IngressRule? right)
Parameters
Type Name Description
V1IngressRule left
V1IngressRule right
Returns
Type Description
bool
View Source

operator !=(V1IngressRule?, V1IngressRule?)

Declaration
public static bool operator !=(V1IngressRule? left, V1IngressRule? right)
Parameters
Type Name Description
V1IngressRule left
V1IngressRule right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX