class K8S::Api::Core::V1::ServicePort
- K8S::Api::Core::V1::ServicePort
- Reference
- Object
Overview
ServicePort contains information on service's port.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.13/api/core/v1/service_port.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, port : Int32, name : String? = nil, node_port : Int32? = nil, protocol : String? = nil, target_port : Int32 | String | Nil = nil)
Instance Method Summary
- #name : String?
- #name=(name : String?)
- #node_port : Int32?
- #node_port=(node_port : Int32?)
- #port : Int32
- #port=(port : Int32)
- #protocol : String?
- #protocol=(protocol : String?)
- #target_port : Int32 | String | Nil
- #target_port=(target_port : Int32 | String | Nil)
Constructor Detail
def self.new(*, port : Int32, name : String? = nil, node_port : Int32? = nil, protocol : String? = nil, target_port : Int32 | String | Nil = nil)
#