UNPKG

kubernetes-models

Version:
34 lines (33 loc) 1.28 kB
import { IIoK8sApiCoreV1ObjectReference } from "./ObjectReference"; import { Model } from "@kubernetes-models/base"; /** * EndpointAddress is a tuple that describes single IP address. */ export interface IEndpointAddress { /** * The Hostname of this endpoint */ "hostname"?: string; /** * The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. */ "ip": string; /** * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. */ "nodeName"?: string; /** * Reference to object providing the endpoint. */ "targetRef"?: IIoK8sApiCoreV1ObjectReference; } /** * EndpointAddress is a tuple that describes single IP address. */ export declare class EndpointAddress extends Model<IEndpointAddress> implements IEndpointAddress { "hostname"?: string; "ip": string; "nodeName"?: string; "targetRef"?: IIoK8sApiCoreV1ObjectReference; } export { IEndpointAddress as IIoK8sApiCoreV1EndpointAddress, EndpointAddress as IoK8sApiCoreV1EndpointAddress };