import { IComGithubCiliumCiliumPkgK8sApisCiliumIoV2RedirectBackend } from "./RedirectBackend.js"; import { IComGithubCiliumCiliumPkgK8sApisCiliumIoV2RedirectFrontend } from "./RedirectFrontend.js"; import { ModelData, Model } from "@kubernetes-models/base"; /** * CiliumLocalRedirectPolicySpec specifies the configurations for redirecting traffic * within a node. */ export interface ICiliumLocalRedirectPolicySpec { /** * Description can be used by the creator of the policy to describe the * purpose of this policy. */ "description"?: string; /** * RedirectBackend specifies backend configuration to redirect traffic to. * It can not be empty. */ "redirectBackend": IComGithubCiliumCiliumPkgK8sApisCiliumIoV2RedirectBackend; /** * RedirectFrontend specifies frontend configuration to redirect traffic from. * It can not be empty. */ "redirectFrontend": IComGithubCiliumCiliumPkgK8sApisCiliumIoV2RedirectFrontend; /** * SkipRedirectFromBackend indicates whether traffic matching RedirectFrontend * from RedirectBackend should skip redirection, and hence the traffic will * be forwarded as-is. * * The default is false which means traffic matching RedirectFrontend will * get redirected from all pods, including the RedirectBackend(s). * * Example: If RedirectFrontend is configured to "169.254.169.254:80" as the traffic * that needs to be redirected to backends selected by RedirectBackend, if * SkipRedirectFromBackend is set to true, traffic going to "169.254.169.254:80" * from such backends will not be redirected back to the backends. Instead, * the matched traffic from the backends will be forwarded to the original * destination "169.254.169.254:80". */ "skipRedirectFromBackend"?: boolean; } /** * CiliumLocalRedirectPolicySpec specifies the configurations for redirecting traffic * within a node. */ export declare class CiliumLocalRedirectPolicySpec extends Model implements ICiliumLocalRedirectPolicySpec { "description"?: string; "redirectBackend": IComGithubCiliumCiliumPkgK8sApisCiliumIoV2RedirectBackend; "redirectFrontend": IComGithubCiliumCiliumPkgK8sApisCiliumIoV2RedirectFrontend; "skipRedirectFromBackend"?: boolean; constructor(data?: ModelData); } export type { ICiliumLocalRedirectPolicySpec as IComGithubCiliumCiliumPkgK8sApisCiliumIoV2CiliumLocalRedirectPolicySpec, CiliumLocalRedirectPolicySpec as ComGithubCiliumCiliumPkgK8sApisCiliumIoV2CiliumLocalRedirectPolicySpec };