apply_k8s_manifest
Applies a Kubernetes manifest to a cluster using server-side apply. This is similar to running kubectl apply --server-side.
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": {
"parent": "<parent>",
"yamlManifest": "<yamlManifest>"
},
"name": "apply_k8s_manifest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Optional. If true, run in dry-run mode. | |
| parent | Yes | Required. The cluster to apply the manifest to. Format: projects/{project}/locations/{location}/clusters/{cluster} | |
| yamlManifest | Yes | Required. The YAML manifest to apply. | |
| forceConflicts | No | Optional. If true, force conflicts resolution when applying. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Errors encountered during apply. If this field is populated, some resources may not have been applied. | |
| result | No | Result of the apply operation, e.g., resources created/configured. This might be a summary string or structured data. |