class K8S::Api::Core::V1::EndpointSubset
- K8S::Api::Core::V1::EndpointSubset
- Reference
- Object
Overview
EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.21/api/core/v1/endpoint_subset.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, addresses : Array? = nil, not_ready_addresses : Array? = nil, ports : Array? = nil)
Instance Method Summary
- #addresses : Array(Api::Core::V1::EndpointAddress)?
- #addresses=(addresses : Array(Api::Core::V1::EndpointAddress)?)
- #not_ready_addresses : Array(Api::Core::V1::EndpointAddress)?
- #not_ready_addresses=(not_ready_addresses : Array(Api::Core::V1::EndpointAddress)?)
- #ports : Array(Api::Core::V1::EndpointPort)?
- #ports=(ports : Array(Api::Core::V1::EndpointPort)?)
Constructor Detail
def self.new(*, addresses : Array? = nil, not_ready_addresses : Array? = nil, ports : Array? = nil)
#
Instance Method Detail
def not_ready_addresses=(not_ready_addresses : Array(Api::Core::V1::EndpointAddress)?)
#