Kubernetes Workloads API

Workload resources including Pods, Deployments, StatefulSets, DaemonSets, ReplicaSets, Jobs, and CronJobs for managing containerized applications.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 13

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/namespaces/{namespace}/pods List pods in a namespace · Kubernetes List pods in a namespace #
Ask an LLM
“Which pods are running in my namespace?”
“Can I filter a namespace's pods by label or field?”
Tell an agent
List all pods in namespace {namespace}.
Show {namespace} pods matching {labelSelector}.
POST /api/v1/namespaces/{namespace}/pods Create a pod · Kubernetes Create a pod #
Ask an LLM
“How do I deploy a new pod into a namespace?”
“What does a pod need in its spec to run?”
Tell an agent
Create a pod in namespace {namespace} with spec {spec}.
Deploy a new pod in {namespace} described by {spec}.
GET /api/v1/namespaces/{namespace}/pods/{name} Get a pod · Kubernetes Get a pod #
Ask an LLM
“What phase is a particular pod in?”
“Can I see a pod's container statuses and scheduling info?”
Tell an agent
Get pod {name} in namespace {namespace}.
Show the phase and container statuses of {name} in {namespace}.
PUT /api/v1/namespaces/{namespace}/pods/{name} Replace a pod · Kubernetes Replace a pod #
Ask an LLM
“Can I replace a pod's definition directly?”
“Are pod fields immutable after creation?”
Tell an agent
Replace pod {name} in {namespace} with spec {spec}.
Overwrite the definition of {name} in {namespace}.
DELETE /api/v1/namespaces/{namespace}/pods/{name} Delete a pod · Kubernetes Delete a pod #
Ask an LLM
“How do I delete a pod so its controller restarts it?”
“Can I shorten the grace period when deleting a pod?”
Tell an agent destructive · confirm first
Delete pod {name} in namespace {namespace}.
Delete {name} in {namespace} with a {gracePeriodSeconds} second grace period.
GET /api/v1/namespaces/{namespace}/pods/{name}/log Read a pod's logs · Kubernetes Read pod logs #
Ask an LLM
“How do I stream the logs from a container in a pod?”
“Can I read only the last N lines of a pod's logs?”
Tell an agent
Read the logs of pod {name} in namespace {namespace}.
Show the last {tailLines} lines of {name} in {namespace}.
GET /apis/apps/v1/namespaces/{namespace}/deployments List deployments in a namespace · Kubernetes List deployments in a namespace #
Ask an LLM
“Which deployments are in my namespace?”
“Can I filter deployments by label or field?”
Tell an agent
List all deployments in namespace {namespace}.
Show {namespace} deployments matching {labelSelector}.
POST /apis/apps/v1/namespaces/{namespace}/deployments Create a deployment · Kubernetes Create a deployment #
Ask an LLM
“How do I deploy a stateless application with rolling updates?”
“What does a deployment need in its spec to manage replicas?”
Tell an agent
Create a deployment in namespace {namespace} with spec {spec}.
Deploy a new deployment in {namespace} described by {spec}.
GET /apis/apps/v1/namespaces/{namespace}/deployments/{name} Get a deployment · Kubernetes Get a deployment #
Ask an LLM
“What is the rollout status of a deployment?”
“How many replicas does a deployment have?”
Tell an agent
Get deployment {name} in namespace {namespace}.
Show the replica counts and rollout status of {name} in {namespace}.
PUT /apis/apps/v1/namespaces/{namespace}/deployments/{name} Replace a deployment · Kubernetes Replace a deployment #
Ask an LLM
“How do I change a deployment's pod template and trigger a rollout?”
“Does updating a deployment's spec replace its whole configuration?”
Tell an agent
Replace deployment {name} in {namespace} with spec {spec}.
Overwrite the configuration of {name} in {namespace}.
DELETE /apis/apps/v1/namespaces/{namespace}/deployments/{name} Delete a deployment · Kubernetes Delete a deployment #
Ask an LLM
“How do I delete a deployment and its pods?”
“What happens to the pods when a deployment is deleted?”
Tell an agent destructive · confirm first
Delete deployment {name} in namespace {namespace}.
Remove {name} in {namespace} and its managed ReplicaSet and pods.
GET /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale Get a deployment's scale subresource · Kubernetes Get deployment scale #
Ask an LLM
“What is the current scale subresource of a deployment?”
“Can I check a deployment's desired versus actual replica counts without fetching the whole deployment?”
Tell an agent
Fetch the scale subresource for deployment {name} in namespace {namespace}.
Read the desired and actual replica counts from the scale of {name} in {namespace}.
PUT /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale Scale a deployment · Kubernetes Scale a deployment #
Ask an LLM
“How do I scale a deployment up or down?”
“Can I change how many replicas a deployment runs?”
Tell an agent
Scale deployment {name} in {namespace} to {spec}.
Set the replica count of {name} in {namespace} to {spec}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/kubernetes:kubernetes-workloads-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

kubernetes-workloads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kubernetes Workloads API
  description: The Kubernetes API lets you query and manipulate the state of objects in Kubernetes.
  version: v1.32.0
  contact:
    name: Kubernetes Community
    url: https://kubernetes.io/community/
  termsOfService: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://kubernetes.default.svc
  description: In-cluster Kubernetes API Server
security:
- bearerAuth: []
- clientCertificate: []
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://artifacts.apis.io/kubernetes/openapi/kubernetes-workloads-api-openapi.yml