class Pyrite::Api::Core::V1::EndpointSubset
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 ]
Defined in:
versions/v1.14/api/core/v1/endpoint_subset.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
EndpointSubset is a group of addresses with a common set of ports.
-
.new(pull : JSON::PullParser)
EndpointSubset is a group of addresses with a common set of ports.
- .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 methods inherited from class Pyrite::Kubernetes::Spec
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
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 ]
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 ]