class K8S::Api::Core::V1::ContainerPort
- K8S::Api::Core::V1::ContainerPort
- Reference
- Object
Overview
ContainerPort represents a network port in a single container.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.14/api/core/v1/container_port.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, container_port : Int32, host_ip : String? = nil, host_port : Int32? = nil, name : String? = nil, protocol : String? = nil)
Instance Method Summary
- #container_port : Int32
- #container_port=(container_port : Int32)
- #host_ip : String?
- #host_ip=(host_ip : String?)
- #host_port : Int32?
- #host_port=(host_port : Int32?)
- #name : String?
- #name=(name : String?)
- #protocol : String?
- #protocol=(protocol : String?)
Constructor Detail
def self.new(*, container_port : Int32, host_ip : String? = nil, host_port : Int32? = nil, name : String? = nil, protocol : String? = nil)
#