Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 2 KB

File metadata and controls

30 lines (23 loc) · 2 KB

V1EndpointSubset

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 ] Deprecated: This API is deprecated in v1.33+.

Properties

Name Type Description Notes
addresses List[V1EndpointAddress] IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. [optional]
not_ready_addresses List[V1EndpointAddress] IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. [optional]
ports List[CoreV1EndpointPort] Port numbers available on the related IP addresses. [optional]

Example

from kubernetes.client.models.v1_endpoint_subset import V1EndpointSubset

# TODO update the JSON string below
json = "{}"
# create an instance of V1EndpointSubset from a JSON string
v1_endpoint_subset_instance = V1EndpointSubset.from_json(json)
# print the JSON string representation of the object
print(V1EndpointSubset.to_json())

# convert the object into a dict
v1_endpoint_subset_dict = v1_endpoint_subset_instance.to_dict()
# create an instance of V1EndpointSubset from a dict
v1_endpoint_subset_from_dict = V1EndpointSubset.from_dict(v1_endpoint_subset_dict)

[Back to Model list] [Back to API list] [Back to README]