pub struct IngressRouteUDPRoutesServices {
pub name: String,
pub namespace: Option<String>,
pub native_lb: Option<bool>,
pub node_port_lb: Option<bool>,
pub port: IntOrString,
pub weight: Option<i64>,
}Expand description
ServiceUDP defines an upstream UDP service to proxy traffic to.
Fields§
§name: StringName defines the name of the referenced Kubernetes Service.
namespace: Option<String>Namespace defines the namespace of the referenced Kubernetes Service.
native_lb: Option<bool>NativeLB controls, when creating the load-balancer, whether the LB’s children are directly the pods IPs or if the only child is the Kubernetes Service clusterIP. The Kubernetes Service itself does load-balance to the pods. By default, NativeLB is false.
node_port_lb: Option<bool>NodePortLB controls, when creating the load-balancer, whether the LB’s children are directly the nodes internal IPs using the nodePort when the service type is NodePort. It allows services to be reachable when Traefik runs externally from the Kubernetes cluster but within the same network of the nodes. By default, NodePortLB is false.
port: IntOrStringPort defines the port of a Kubernetes Service. This can be a reference to a named port.
weight: Option<i64>Weight defines the weight used when balancing requests between multiple Kubernetes Service.
Implementations§
Source§impl IngressRouteUDPRoutesServices
impl IngressRouteUDPRoutesServices
Sourcepub fn builder() -> IngressRouteUDPRoutesServicesBuilder<((), (), (), (), (), ())>
pub fn builder() -> IngressRouteUDPRoutesServicesBuilder<((), (), (), (), (), ())>
Create a builder for building IngressRouteUDPRoutesServices.
On the builder, call .name(...), .namespace(...)(optional), .native_lb(...)(optional), .node_port_lb(...)(optional), .port(...), .weight(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of IngressRouteUDPRoutesServices.
Trait Implementations§
Source§impl Clone for IngressRouteUDPRoutesServices
impl Clone for IngressRouteUDPRoutesServices
Source§fn clone(&self) -> IngressRouteUDPRoutesServices
fn clone(&self) -> IngressRouteUDPRoutesServices
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for IngressRouteUDPRoutesServices
impl Default for IngressRouteUDPRoutesServices
Source§fn default() -> IngressRouteUDPRoutesServices
fn default() -> IngressRouteUDPRoutesServices
Source§impl<'de> Deserialize<'de> for IngressRouteUDPRoutesServices
impl<'de> Deserialize<'de> for IngressRouteUDPRoutesServices
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 JsonSchema for IngressRouteUDPRoutesServices
impl JsonSchema for IngressRouteUDPRoutesServices
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for IngressRouteUDPRoutesServices
impl PartialEq for IngressRouteUDPRoutesServices
Source§fn eq(&self, other: &IngressRouteUDPRoutesServices) -> bool
fn eq(&self, other: &IngressRouteUDPRoutesServices) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IngressRouteUDPRoutesServices
Auto Trait Implementations§
impl Freeze for IngressRouteUDPRoutesServices
impl RefUnwindSafe for IngressRouteUDPRoutesServices
impl Send for IngressRouteUDPRoutesServices
impl Sync for IngressRouteUDPRoutesServices
impl Unpin for IngressRouteUDPRoutesServices
impl UnwindSafe for IngressRouteUDPRoutesServices
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more