Test network policy connectivity
k8s_test_network_policy_connectivityTests Kubernetes NetworkPolicy connectivity by creating test pods in a namespace, verifying whether traffic is allowed or blocked under the specified policy.
Instructions
Test NetworkPolicy connectivity by creating test pods.
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": {
"namespace": "<namespace>",
"policy_name": "<policy_name>"
},
"name": "k8s_test_network_policy_connectivity"
}
}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. | |
| namespace | Yes | ||
| policy_name | Yes |