UNPKG

@kubernetes-models/traefik

Version:
69 lines (68 loc) 3.27 kB
import { IObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta"; import { Model, ModelData } from "@kubernetes-models/base"; /** * IngressRouteUDP is a CRD implementation of a Traefik UDP Router. */ export interface IIngressRouteUDP { /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources */ "apiVersion": "traefik.containo.us/v1alpha1"; /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ "kind": "IngressRouteUDP"; "metadata": IObjectMeta; /** * IngressRouteUDPSpec defines the desired state of a IngressRouteUDP. */ "spec": { /** * EntryPoints defines the list of entry point names to bind to. Entry points have to be configured in the static configuration. More info: https://doc.traefik.io/traefik/v2.10/routing/entrypoints/ Default: all. */ "entryPoints"?: Array<string>; /** * Routes defines the list of routes. */ "routes": Array<{ /** * Services defines the list of UDP services. */ "services"?: Array<{ /** * Name defines the name of the referenced Kubernetes Service. */ "name": string; /** * Namespace defines the namespace of the referenced Kubernetes Service. */ "namespace"?: string; /** * NativeLB controls, when creating the load-balancer, whether the LB's children are directly the pods IPs or if the only child is the Kubernetes Service clusterIP. The Kubernetes Service itself does load-balance to the pods. By default, NativeLB is false. */ "nativeLB"?: boolean; /** * Port defines the port of a Kubernetes Service. This can be a reference to a named port. */ "port": number | string; /** * Weight defines the weight used when balancing requests between multiple Kubernetes Service. */ "weight"?: number; }>; }>; }; } /** * IngressRouteUDP is a CRD implementation of a Traefik UDP Router. */ export declare class IngressRouteUDP extends Model<IIngressRouteUDP> implements IIngressRouteUDP { "apiVersion": IIngressRouteUDP["apiVersion"]; "kind": IIngressRouteUDP["kind"]; "metadata": IIngressRouteUDP["metadata"]; "spec": IIngressRouteUDP["spec"]; static apiVersion: IIngressRouteUDP["apiVersion"]; static kind: IIngressRouteUDP["kind"]; static is: import("@kubernetes-models/base").TypeMetaGuard<IIngressRouteUDP>; constructor(data?: ModelData<IIngressRouteUDP>); }