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 the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated kubernetes.io/ingress.class
annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.
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
sourceimpl Clone for IngressSpec
impl Clone for IngressSpec
sourcefn clone(&self) -> IngressSpec
fn clone(&self) -> IngressSpec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IngressSpec
impl Debug for IngressSpec
sourceimpl Default for IngressSpec
impl Default for IngressSpec
sourcefn default() -> IngressSpec
fn default() -> IngressSpec
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for IngressSpec
impl<'de> Deserialize<'de> for IngressSpec
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<IngressSpec> for IngressSpec
impl PartialEq<IngressSpec> for IngressSpec
sourcefn eq(&self, other: &IngressSpec) -> bool
fn eq(&self, other: &IngressSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IngressSpec) -> bool
fn ne(&self, other: &IngressSpec) -> bool
This method tests for !=
.
sourceimpl Serialize for IngressSpec
impl Serialize for IngressSpec
impl StructuralPartialEq for IngressSpec
Auto Trait Implementations
impl RefUnwindSafe for IngressSpec
impl Send for IngressSpec
impl Sync for IngressSpec
impl Unpin for IngressSpec
impl UnwindSafe for IngressSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more