Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kubernetes_apis/builtin/core@v1/structs.ts>PodAffinityTerm

REST focused Typescript classes for Kubernetes APIs, and tools for generating API interfaces
Go to Latest
interface PodAffinityTerm
import { type PodAffinityTerm } from "https://deno.land/x/kubernetes_apis@v0.5.1/builtin/core@v1/structs.ts";

Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running

Properties

optional
labelSelector: MetaV1.LabelSelector | null
optional
namespaceSelector: MetaV1.LabelSelector | null
optional
namespaces: Array<string> | null
topologyKey: string