{"uid":"cap_-9I3KueICS31KDVjNSqdC","slug":"kubernetes-node-affinity-taint-toleration-admission-checker-1684b618","name":"Kubernetes Node Affinity & Taint Toleration Admission Checker","description":"Compute complete node eligibility from required/preferred node affinity and hard/soft taints with exact toleration matching.","url":"https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-05/kubernetes132-node-affinity-taint-toleration-admission?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","$defs":{"s_4dbca1a6673f":{"type":"object","maxProperties":32,"additionalProperties":{"type":"string","maxLength":256}}},"required":["k8sAffinity"],"properties":{"k8sAffinity":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["node_selector","nodes","preferred_terms","required_terms","tolerations"],"properties":{"nodes":{"type":"array","items":{"type":"object","required":["labels","taints"],"properties":{"labels":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/s_4dbca1a6673f"},"taints":{"type":"array","items":{"type":"object","required":["effect","key","value"],"properties":{"key":{"type":"string","maxLength":20000},"value":{"type":"string","maxLength":20000},"effect":{"type":"string","maxLength":20000}},"additionalProperties":false},"maxItems":512}},"additionalProperties":false},"maxItems":512},"tolerations":{"type":"array","items":{"type":"object","required":["effect","key","operator","value"],"properties":{"key":{"type":"string","maxLength":20000},"value":{"type":"string","maxLength":20000},"effect":{"type":"string","maxLength":20000},"operator":{"type":"string","maxLength":20000}},"additionalProperties":false},"maxItems":512},"node_selector":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/s_4dbca1a6673f"},"required_terms":{"type":"array","items":{"type":"object","required":["expressions","match_labels"],"properties":{"expressions":{"type":"array","items":{"type":"object","required":["key","operator","values"],"properties":{"key":{"type":"string","maxLength":20000},"values":{"type":"array","items":{"type":"string","maxLength":20000},"maxItems":512},"operator":{"type":"string","maxLength":20000}},"additionalProperties":false},"maxItems":512},"match_labels":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/s_4dbca1a6673f"}},"additionalProperties":false},"maxItems":512},"preferred_terms":{"type":"array","items":{"type":"object","required":["selector","weight"],"properties":{"weight":{"type":"number"},"selector":{"type":"object","required":["expressions","match_labels"],"properties":{"expressions":{"type":"array","items":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string","maxLength":20000}]},"maxItems":512},"match_labels":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/s_4dbca1a6673f"}},"additionalProperties":false}},"additionalProperties":false},"maxItems":512}},"additionalProperties":false},"claim":{"anyOf":[{"type":"null"},{"type":"object","required":["nodes"],"properties":{"nodes":{"type":"array","items":{"type":"object","required":["affinity_match","eligible","preferred_weight","untolerated_hard","untolerated_soft"],"properties":{"eligible":{"type":"boolean"},"affinity_match":{"type":"boolean"},"preferred_weight":{"type":"number"},"untolerated_hard":{"type":"array","items":{"type":"number"},"maxItems":512},"untolerated_soft":{"type":"array","items":{"type":"number"},"maxItems":512}},"additionalProperties":false},"maxItems":512}},"additionalProperties":false}]}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HShmvGouha-KGTSIoOyZ3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes complete node eligibility for a pod by evaluating required/preferred node affinity rules and hard/soft taints against explicit toleration matching.","exampleAgentPrompt":"Check whether my pod — which requires nodes labeled 'env=prod' and 'zone=us-east-1', tolerates the taint 'dedicated=gpu:NoSchedule', and prefers nodes labeled 'tier=high' — is eligible to run on my three candidate nodes with their current labels and taints.","exampleUseCases":[{"title":"Pre-deployment scheduling feasibility check","prompt":"Before I roll out my GPU workload, tell me which of these five nodes it can actually land on — the pod needs nodes labeled 'accelerator=nvidia-t4' and 'region=us-west-2', tolerates 'gpu=true:NoSchedule', and prefers nodes with 'spot=false'. Here are the labels and taints for each node."},{"title":"Debugging unschedulable pod in production","prompt":"My pod is stuck in Pending and I think it's a taint or affinity issue. The pod has a required affinity for 'environment=staging' and 'disk=ssd', a preferred affinity for 'zone=b', and tolerations for 'maintenance:NoSchedule'. Can you evaluate these three nodes and tell me exactly which rules are blocking admission?"},{"title":"Validating node pool changes before cluster upgrade","prompt":"I'm about to add a new taint 'upgrade=in-progress:NoExecute' to my node pool. Can you run the full admission check for my existing workloads — with their current tolerations and affinity terms — against the updated node configuration so I know which pods would be evicted or unschedulable?"}],"resultDescription":"Returns a structured eligibility artifact per node indicating whether each node passes required affinity, fails on specific taints, satisfies toleration matching, and its soft-preference score — giving a complete admission decision for each candidate node.","failureModes":["Malformed node label map or taint structure returns a 400 validation error","Exceeding 512-item array limits on nodes, tolerations, or affinity terms causes a schema rejection","Missing required fields (node_selector, nodes, preferred_terms, required_terms, tolerations) returns an error","Invalid operator values in affinity expressions may cause computation failure","Payment not attached or insufficient USDC causes a 402 response"],"whenToPreferThis":"Use this endpoint when you need deterministic, server-side computation of Kubernetes scheduling admission logic — especially when you want to evaluate multiple candidate nodes against complex required+preferred affinity rules and hard+soft taints in a single call, without spinning up a real Kubernetes API server or kube-scheduler.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-24T00:39:58.838Z","isFirstParty":false,"canonicalSlug":"kubernetes-node-affinity-taint-toleration-admission-checker-1684b618"}