kubernetes.aio.client.models.v1_container_port module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1_container_port.V1ContainerPort(container_port=None, host_ip=None, host_port=None, name=None, protocol=None, local_vars_configuration=None)¶
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'container_port': 'containerPort', 'host_ip': 'hostIP', 'host_port': 'hostPort', 'name': 'name', 'protocol': 'protocol'}¶
- property container_port¶
Gets the container_port of this V1ContainerPort. # noqa: E501
Number of port to expose on the pod’s IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501
- Returns:
The container_port of this V1ContainerPort. # noqa: E501
- Return type:
- property host_ip¶
Gets the host_ip of this V1ContainerPort. # noqa: E501
What host IP to bind the external port to. # noqa: E501
- Returns:
The host_ip of this V1ContainerPort. # noqa: E501
- Return type:
str
- property host_port¶
Gets the host_port of this V1ContainerPort. # noqa: E501
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. # noqa: E501
- Returns:
The host_port of this V1ContainerPort. # noqa: E501
- Return type:
- property name¶
Gets the name of this V1ContainerPort. # noqa: E501
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. # noqa: E501
- Returns:
The name of this V1ContainerPort. # noqa: E501
- Return type:
str
- openapi_types = {'container_port': 'int', 'host_ip': 'str', 'host_port': 'int', 'name': 'str', 'protocol': 'str'}¶
- property protocol¶
Gets the protocol of this V1ContainerPort. # noqa: E501
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to “TCP”. # noqa: E501
- Returns:
The protocol of this V1ContainerPort. # noqa: E501
- Return type:
str
- to_dict(serialize=False)¶
Returns the model properties as a dict
- to_str()¶
Returns the string representation of the model