[][src]Struct k8s_openapi::api::core::v1::ContainerPort

pub struct ContainerPort {
    pub container_port: i32,
    pub host_ip: Option<String>,
    pub host_port: Option<i32>,
    pub name: Option<String>,
    pub protocol: Option<String>,
}

ContainerPort represents a network port in a single container.

Fields

container_port: i32

Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.

host_ip: Option<String>

What host IP to bind the external port to.

host_port: Option<i32>

Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.

name: Option<String>

If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.

protocol: Option<String>

Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".

Trait Implementations

impl Clone for ContainerPort[src]

impl Debug for ContainerPort[src]

impl Default for ContainerPort[src]

impl<'de> Deserialize<'de> for ContainerPort[src]

impl PartialEq<ContainerPort> for ContainerPort[src]

impl Serialize for ContainerPort[src]

impl StructuralPartialEq for ContainerPort[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.