Struct k8s_openapi::v1_7::kubernetes::pkg::api::v1::ContainerPort[][src]

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

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

What host IP to bind the external port to.

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.

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 for port. Must be UDP or TCP. Defaults to "TCP".

Trait Implementations

impl Clone for ContainerPort
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ContainerPort
[src]

Formats the value using the given formatter. Read more

impl Default for ContainerPort
[src]

Returns the "default value" for a type. Read more

impl PartialEq for ContainerPort
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for ContainerPort
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations