Set pod anti affinity
k8s_set_pod_anti_affinityConfigure pod anti-affinity rules for a Kubernetes pod in a namespace to control scheduling and prevent selected pods from co-locating on the same nodes.
Instructions
Set pod anti-affinity for a pod.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pod_name": "<pod_name>",
"namespace": "<namespace>",
"anti_affinity": "<anti_affinity>"
},
"name": "k8s_set_pod_anti_affinity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| pod_name | Yes | ||
| namespace | Yes | ||
| anti_affinity | Yes |