Struct k8s_openapi::api::networking::v1::IngressSpec
source · pub struct IngressSpec {
pub default_backend: Option<IngressBackend>,
pub ingress_class_name: Option<String>,
pub rules: Option<Vec<IngressRule>>,
pub tls: Option<Vec<IngressTLS>>,
}
Expand description
IngressSpec describes the Ingress the user wishes to exist.
Fields§
§default_backend: Option<IngressBackend>
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.
ingress_class_name: Option<String>
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.
rules: Option<Vec<IngressRule>>
A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.
tls: Option<Vec<IngressTLS>>
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.
Trait Implementations§
source§impl Clone for IngressSpec
impl Clone for IngressSpec
source§fn clone(&self) -> IngressSpec
fn clone(&self) -> IngressSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IngressSpec
impl Debug for IngressSpec
source§impl DeepMerge for IngressSpec
impl DeepMerge for IngressSpec
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for IngressSpec
impl Default for IngressSpec
source§fn default() -> IngressSpec
fn default() -> IngressSpec
source§impl<'de> Deserialize<'de> for IngressSpec
impl<'de> Deserialize<'de> for IngressSpec
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
source§impl PartialEq<IngressSpec> for IngressSpec
impl PartialEq<IngressSpec> for IngressSpec
source§fn eq(&self, other: &IngressSpec) -> bool
fn eq(&self, other: &IngressSpec) -> bool
self
and other
values to be equal, and is used
by ==
.