class K8S::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 ]

Included Modules

Defined in:

versions/v1.18/api/core/v1/endpoint_subset.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, addresses : Array? = nil, not_ready_addresses : Array? = nil, ports : Array? = nil) #

[View source]

Instance Method Detail

def addresses : Array(Api::Core::V1::EndpointAddress)? #

[View source]
def addresses=(addresses : Array(Api::Core::V1::EndpointAddress)?) #

[View source]
def not_ready_addresses : Array(Api::Core::V1::EndpointAddress)? #

[View source]
def not_ready_addresses=(not_ready_addresses : Array(Api::Core::V1::EndpointAddress)?) #

[View source]
def ports : Array(Api::Core::V1::EndpointPort)? #

[View source]
def ports=(ports : Array(Api::Core::V1::EndpointPort)?) #

[View source]