Show / Hide Table of Contents

Class V1IngressSpec

IngressSpec describes the Ingress the user wishes to exist.

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

Constructors

V1IngressSpec()

Declaration
public V1IngressSpec()

V1IngressSpec(V1IngressSpec)

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

Properties

DefaultBackend

defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller.

Declaration
[JsonPropertyName("defaultBackend")]
public V1IngressBackend DefaultBackend { get; set; }
Property Value
Type Description
V1IngressBackend

EqualityContract

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

IngressClassName

ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the kubernetes.io/ingress.class annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.

Declaration
[JsonPropertyName("ingressClassName")]
public string IngressClassName { get; set; }
Property Value
Type Description
string

Rules

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

Declaration
[JsonPropertyName("rules")]
public IList<V1IngressRule> Rules { get; set; }
Property Value
Type Description
IList<V1IngressRule>

Tls

tls represents the 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.

Declaration
[JsonPropertyName("tls")]
public IList<V1IngressTLS> Tls { get; set; }
Property Value
Type Description
IList<V1IngressTLS>

Methods

Equals(object?)

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

Equals(V1IngressSpec?)

Declaration
public virtual bool Equals(V1IngressSpec? other)
Parameters
Type Name Description
V1IngressSpec other
Returns
Type Description
bool

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

operator ==(V1IngressSpec?, V1IngressSpec?)

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

operator !=(V1IngressSpec?, V1IngressSpec?)

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

Implements

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