class Pyrite::Api::Core::V1::ServicePort
- Pyrite::Api::Core::V1::ServicePort
- Pyrite::Kubernetes::Spec
- Reference
- Object
Overview
ServicePort contains information on service's port.
Defined in:
versions/v1.14/api/core/v1/service_port.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
ServicePort contains information on service's port.
-
.new(pull : JSON::PullParser)
ServicePort contains information on service's port.
- .new(*, name : String? = nil, node_port : Int32? = nil, port : Int32, 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 methods inherited from class Pyrite::Kubernetes::Spec
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
#
ServicePort contains information on service's port.
def self.new(*, name : String? = nil, node_port : Int32? = nil, port : Int32, protocol : String? = nil, target_port : Int32 | String | Nil = nil)
#