# Kubernetes integration

The core API family covers core/v1, apps/v1, batch/v1 and networking.k8s.io/v1 resources. Namespace and RBAC are explicit, metadata.resourceVersion remains a string, and list pagination follows the opaque metadata.continue token.

Canonical URL: https://opennodeflow.dev/wiki/integration-kubernetes/
JSON reference: https://opennodeflow.dev/wiki/integration-kubernetes/index.json
Source snapshot: 2026-10-23

Kubernetes contributes **32 operations** in the current source catalog. Its implementation family belongs to the **Kubernetes** pack. Add that pack to the chosen workspace before authoring with its definitions.

## Capabilities and boundaries

The core API family covers core/v1, apps/v1, batch/v1 and networking.k8s.io/v1 resources. Namespace and RBAC are explicit, metadata.resourceVersion remains a string, and list pagination follows the opaque metadata.continue token.

Merge patches replace arrays and delete null members according to Kubernetes semantics. Update/scale operations require an observed resourceVersion. Logs use follow=false. Secret objects, exec/attach/watch and blanket deletion are excluded.

## Configure the connection

Use an authorized bearer credential stored under the secret name `KUBERNETES_TOKEN` or a deliberate override.

The source default base origin is `https://kubernetes.example.com`. Domains under example.com/example.net are placeholders for your own API, not running public services. Use the exact provider API origin and trusted certificate chain. A connection profile can supply credentials and repeated target defaults; profile credentials take precedence over node secret-name overrides. These developer nodes do not obtain tokens or refresh grants.

Read the chosen operation's permission entry before granting the account access. Least required target permissions are preferable to a broad administrator credential.

## First bounded read

Start with **Kubernetes List Pods**, which is declared as a read. Its synthetic argument fixture is:

```json
{
  "namespace": "demo"
}
```

Replace the synthetic resource identifiers with an explicitly authorized target before any real read. An example is not an installed workflow and contains no credential values.

Set `maxPages:1` initially and inspect the result, `status`, selected direct fields and any `request_id`. Lists return `count`, `has_more` and optional `continuation`; not every provider resource is paginated. Keep the same resource/query scope when resuming. Optional outputs remain absent when the provider does not supply them. Wire only the fields present on the selected branch.

## Available operations

| Operation | Effect | API route |
| --- | --- | --- |
| [Kubernetes List Pods](/wiki/reference-dev-kubernetes-list-pod/) | read | `GET /api/v1/namespaces/{namespace}/pods` |
| [Kubernetes Get Pod](/wiki/reference-dev-kubernetes-get-pod/) | read | `GET /api/v1/namespaces/{namespace}/pods/{name}` |
| [Kubernetes List Deployments](/wiki/reference-dev-kubernetes-list-deployment/) | read | `GET /apis/apps/v1/namespaces/{namespace}/deployments` |
| [Kubernetes Get Deployment](/wiki/reference-dev-kubernetes-get-deployment/) | read | `GET /apis/apps/v1/namespaces/{namespace}/deployments/{name}` |
| [Kubernetes Patch Deployment](/wiki/reference-dev-kubernetes-patch-deployment/) | write | `PATCH /apis/apps/v1/namespaces/{namespace}/deployments/{name}` |
| [Kubernetes List Stateful Sets](/wiki/reference-dev-kubernetes-list-stateful-set/) | read | `GET /apis/apps/v1/namespaces/{namespace}/statefulsets` |
| [Kubernetes Get StatefulSet](/wiki/reference-dev-kubernetes-get-stateful-set/) | read | `GET /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}` |
| [Kubernetes Patch StatefulSet](/wiki/reference-dev-kubernetes-patch-stateful-set/) | write | `PATCH /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}` |
| [Kubernetes List Daemon Sets](/wiki/reference-dev-kubernetes-list-daemon-set/) | read | `GET /apis/apps/v1/namespaces/{namespace}/daemonsets` |
| [Kubernetes Get DaemonSet](/wiki/reference-dev-kubernetes-get-daemon-set/) | read | `GET /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}` |
| [Kubernetes Patch DaemonSet](/wiki/reference-dev-kubernetes-patch-daemon-set/) | write | `PATCH /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}` |
| [Kubernetes List Services](/wiki/reference-dev-kubernetes-list-service/) | read | `GET /api/v1/namespaces/{namespace}/services` |
| [Kubernetes Get Service](/wiki/reference-dev-kubernetes-get-service/) | read | `GET /api/v1/namespaces/{namespace}/services/{name}` |
| [Kubernetes List Jobs](/wiki/reference-dev-kubernetes-list-job/) | read | `GET /apis/batch/v1/namespaces/{namespace}/jobs` |
| [Kubernetes Get Job](/wiki/reference-dev-kubernetes-get-job/) | read | `GET /apis/batch/v1/namespaces/{namespace}/jobs/{name}` |
| [Kubernetes List Cron Jobs](/wiki/reference-dev-kubernetes-list-cron-job/) | read | `GET /apis/batch/v1/namespaces/{namespace}/cronjobs` |
| [Kubernetes Get CronJob](/wiki/reference-dev-kubernetes-get-cron-job/) | read | `GET /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}` |
| [Kubernetes Patch CronJob](/wiki/reference-dev-kubernetes-patch-cron-job/) | write | `PATCH /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}` |
| [Kubernetes List Ingresses](/wiki/reference-dev-kubernetes-list-ingress/) | read | `GET /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses` |
| [Kubernetes Get Ingress](/wiki/reference-dev-kubernetes-get-ingress/) | read | `GET /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}` |
| [Kubernetes List Config Maps](/wiki/reference-dev-kubernetes-list-config-map/) | read | `GET /api/v1/namespaces/{namespace}/configmaps` |
| [Kubernetes Get ConfigMap](/wiki/reference-dev-kubernetes-get-config-map/) | read | `GET /api/v1/namespaces/{namespace}/configmaps/{name}` |
| [Kubernetes Patch ConfigMap](/wiki/reference-dev-kubernetes-patch-config-map/) | write | `PATCH /api/v1/namespaces/{namespace}/configmaps/{name}` |
| [Kubernetes List Events](/wiki/reference-dev-kubernetes-list-event/) | read | `GET /api/v1/namespaces/{namespace}/events` |
| [Kubernetes Get Event](/wiki/reference-dev-kubernetes-get-event/) | read | `GET /api/v1/namespaces/{namespace}/events/{name}` |
| [Kubernetes List Namespaces](/wiki/reference-dev-kubernetes-list-namespace/) | read | `GET /api/v1/namespaces` |
| [Kubernetes Get Namespace](/wiki/reference-dev-kubernetes-get-namespace/) | read | `GET /api/v1/namespaces/{name}` |
| [Kubernetes List Nodes](/wiki/reference-dev-kubernetes-list-node/) | read | `GET /api/v1/nodes` |
| [Kubernetes Get Node](/wiki/reference-dev-kubernetes-get-node/) | read | `GET /api/v1/nodes/{name}` |
| [Kubernetes Scale Deployment](/wiki/reference-dev-kubernetes-scale-deployment/) | write | `PATCH /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale` |
| [Kubernetes Get Pod Logs](/wiki/reference-dev-kubernetes-pod-logs/) | read | `GET /api/v1/namespaces/{namespace}/pods/{name}/log` |
| [Kubernetes Create Job](/wiki/reference-dev-kubernetes-create-job/) | write | `POST /apis/batch/v1/namespaces/{namespace}/jobs` |

Each linked reference contains exact source arguments, named socket contracts, configuration schema, response shape and synthetic data. Source keys must be resolved to the installation's actual definition/version before graph editing.

## Bounds, changes and recovery

The shared developer adapter defaults to a 15-second request timeout, a 1 MiB response bound, one page and 1,000 accumulated items. Configurable maxima are 120 seconds, 3,000,000 response bytes, 20 pages and 5,000 items. Choose smaller limits where appropriate; an excessive response fails rather than becoming a silently complete list.

Read HTTP status and provider-specific success markers. Rejected authentication, permission failures and invalid requests need configuration correction. Rate limiting needs deliberate later scheduling. Same-origin/API-root continuation checks prevent sending credentials to an unrelated next link.

Write/delete operations require `confirmWrites:true` and ONF runtime `$retries:0`. Inspect the target and body before running. A timeout or lost response can follow a successful external action; reconcile the provider resource before repeating. HTTP 202 records acceptance, not completed work.

The reference is source-derived. Synthetic fixtures and isolated worker proof do not establish your account permissions, API availability or live delivery. See [shared setup](/wiki/integration-setup/) and [pack behavior](/wiki/library-packs/).

## Provider contract references

- [Provider reference 1](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/)
- [Provider reference 2](https://kubernetes.io/docs/reference/using-api/api-concepts/)

---

## Documentation provenance

- `../OpenNodeFlow-Library/docs/DEVELOPER-PACKS.md`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/CONTRACT.md`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/api-research.md`

This page describes maintained source, not a live inventory or an authorization to perform actions.
