Kubernetes

Download customer managed Kubernetes kubeconfig

GET /v1/fleets/{fleetId}/kubernetes-v2/kubeconfig

Returns a customer-role kubeconfig for the managed Kubernetes cluster bound to the fleet. The credential is time-limited; clients should refetch before expiresAt. The fleet must belong to the caller's organization.

Parameters

Name In Type Required Description
fleetId path string (uuid) Yes Fleet identifier

Responses

Status Description Body
200 Success - returns a customer-role kubeconfig KubeconfigV2Response
400 Fleet exists but is not Kubernetes-backed ErrorResponse
401 Missing or invalid authentication ErrorResponse
404 Fleet not found in caller's org ErrorResponse
500 The Kubernetes control plane error or internal failure ErrorResponse

Example request

curl "$API_URL/v1/fleets/$FLEET_ID/kubernetes-v2/kubeconfig" \
  -H "Authorization: Bearer $TOKEN"

Get managed Kubernetes cluster health

GET /v1/fleets/{fleetId}/kubernetes-v2/health

Returns the current health status of the managed Kubernetes cluster bound to the fleet: top-level health, control-plane component health, per-worker-node health, networking (Cilium) health, and API-server-to-worker connectivity status. The fleet must belong to the caller's organization. Reads are live (not cached). Returns 404 when the cluster has no health snapshot yet, 502 when the health service reports a server error, and 500 when the health service cannot be reached.

Parameters

Name In Type Required Description
fleetId path string (uuid) Yes Fleet identifier

Responses

Status Description Body
200 Success - returns cluster health Mks2ClusterHealth
400 Fleet exists but is not Kubernetes-backed, or the Kubernetes control plane rejected the request as malformed ErrorResponse
401 Missing or invalid authentication ErrorResponse
404 Fleet not found in caller's org, or the Kubernetes control plane has no health snapshot for the cluster yet ErrorResponse
500 Internal failure before the upstream call (network unreachable, configuration, etc.) ErrorResponse
502 The Kubernetes control plane returned 5xx ErrorResponse

Example request

curl "$API_URL/v1/fleets/$FLEET_ID/kubernetes-v2/health" \
  -H "Authorization: Bearer $TOKEN"

Example response (200)

{
  "status": "healthy",
  "controlPlane": {
    "status": "healthy",
    "replicas": 2,
    "readyReplicas": 2,
    "reason": "1/2 replicas not ready",
    "lastUpdated": "2026-05-11T10:30:00Z"
  },
  "nodes": [
    {
      "id": "g0546",
      "status": "healthy",
      "reason": "Health monitoring not yet available",
      "lastUpdated": "2026-05-11T10:30:00Z",
      "lastHealthyAt": "2026-05-11T10:00:00Z"
    }
  ],
  "network": {
    "cilium": {
      "status": "healthy",
      "reason": "kube-apiserver Pod in CrashLoopBackOff",
      "lastUpdated": "2026-05-11T10:30:00Z",
      "lastHealthyAt": "2026-05-11T10:00:00Z"
    },
    "konnectivity": {
      "status": "healthy",
      "reason": "kube-apiserver Pod in CrashLoopBackOff",
      "lastUpdated": "2026-05-11T10:30:00Z",
      "lastHealthyAt": "2026-05-11T10:00:00Z"
    }
  },
  "addons": {
    "slurm": {
      "status": "healthy",
      "reason": "kube-apiserver Pod in CrashLoopBackOff",
      "lastUpdated": "2026-05-11T10:30:00Z",
      "lastHealthyAt": "2026-05-11T10:00:00Z"
    },
    "prometheus": {
      "status": "healthy",
      "reason": "kube-apiserver Pod in CrashLoopBackOff",
      "lastUpdated": "2026-05-11T10:30:00Z",
      "lastHealthyAt": "2026-05-11T10:00:00Z"
    },
    "efs": {
      "status": "healthy",
      "reason": "kube-apiserver Pod in CrashLoopBackOff",
      "lastUpdated": "2026-05-11T10:30:00Z",
      "lastHealthyAt": "2026-05-11T10:00:00Z"
    }
  },
  "lastUpdated": "2026-05-11T10:30:00Z",
  "lastHealthyAt": "2026-05-11T10:00:00Z"
}

Get managed Kubernetes worker node detail

GET /v1/fleets/{fleetId}/kubernetes-v2/nodes/{nodeId}

Returns the full detail for a single worker node in the fleet's managed Kubernetes cluster, including Kubernetes conditions, GPU info, labels/annotations, and registration timestamps. The fleet must belong to the caller's organization. Unlike the list endpoint (joined-only), this resolves registered-but-not-yet-joined nodes by id.

Parameters

Name In Type Required Description
fleetId path string (uuid) Yes Fleet identifier
nodeId path string Yes Managed Kubernetes worker-node identifier (registry id)

Responses

Status Description Body
200 Success - returns the worker-node detail Mks2WorkerNodeDetail
400 Fleet exists but is not Kubernetes-backed, or the Kubernetes control plane rejected the request as malformed ErrorResponse
401 Missing or invalid authentication ErrorResponse
404 Fleet not found in caller's org, or the Kubernetes control plane has no cluster / no such node ErrorResponse
500 Internal failure before the upstream call (network unreachable, configuration, etc.) ErrorResponse
502 The Kubernetes control plane returned 5xx ErrorResponse

Example request

curl "$API_URL/v1/fleets/$FLEET_ID/kubernetes-v2/nodes/$NODE_ID" \
  -H "Authorization: Bearer $TOKEN"

Example response (200)

{
  "id": "g0546",
  "registrationStatus": "joined",
  "kubernetesStatus": "Ready",
  "conditions": [
    {
      "type": "MemoryPressure",
      "status": "False"
    }
  ],
  "gpu": {
    "model": "NVIDIA-H100-80GB-HBM3"
  },
  "taints": [
    {
      "key": "voltagepark.io/maintenance",
      "value": "true"
    }
  ],
  "maintenance": {
    "alertSuppression": {
      "reason": "OnCall"
    }
  }
}

Cordon a managed Kubernetes worker node

POST /v1/fleets/{fleetId}/kubernetes-v2/nodes/{nodeId}/cordon

Marks the node unschedulable so the scheduler stops placing new pods on it. Existing pods are left running (use drain to evict them). The fleet must belong to the caller's organization. The node must be joined to the cluster; otherwise the request is rejected with 400. Idempotency: pass Idempotency-Key to make this safely retryable.

Parameters

Name In Type Required Description
fleetId path string (uuid) Yes Fleet identifier
nodeId path string Yes Managed Kubernetes worker-node identifier (registry id)
Idempotency-Key header string No Unique key that makes retrying this request safe: a retry with the same key returns the first response instead of running the request again. Optional, but strongly recommended. Use a new UUID v4 for each operation, up to 255 characters. Most responses are kept for 24 hours. See API conventions for conflicts, mismatched retries and errors. Maximum length: 255.

Responses

Status Description Body
200 Node cordoned (marked unschedulable) Mks2CordonNodeResponse
400 Fleet exists but is not Kubernetes-backed, the node is not part of the fleet, or the Kubernetes control plane rejected the request (e.g. the node has not joined the cluster yet) ErrorResponse
401 Missing or invalid authentication ErrorResponse
404 Fleet not found in caller's org, or the Kubernetes control plane has no cluster / no such node ErrorResponse
500 Internal failure before the upstream call ErrorResponse
502 The Kubernetes control plane returned 5xx ErrorResponse

Example request

curl -X POST "$API_URL/v1/fleets/$FLEET_ID/kubernetes-v2/nodes/$NODE_ID/cordon" \
  -H "Authorization: Bearer $TOKEN"

Uncordon a managed Kubernetes worker node

POST /v1/fleets/{fleetId}/kubernetes-v2/nodes/{nodeId}/uncordon

Marks the node schedulable again (reverses cordon), allowing the scheduler to place new pods on it. The fleet must belong to the caller's organization. The node must be joined to the cluster; otherwise the request is rejected with 400. Idempotency: pass Idempotency-Key to make this safely retryable.

Parameters

Name In Type Required Description
fleetId path string (uuid) Yes Fleet identifier
nodeId path string Yes Managed Kubernetes worker-node identifier (registry id)
Idempotency-Key header string No Unique key that makes retrying this request safe: a retry with the same key returns the first response instead of running the request again. Optional, but strongly recommended. Use a new UUID v4 for each operation, up to 255 characters. Most responses are kept for 24 hours. See API conventions for conflicts, mismatched retries and errors. Maximum length: 255.

Responses

Status Description Body
200 Node uncordoned (marked schedulable) Mks2CordonNodeResponse
400 Fleet exists but is not Kubernetes-backed, the node is not part of the fleet, or the Kubernetes control plane rejected the request (e.g. the node has not joined the cluster yet) ErrorResponse
401 Missing or invalid authentication ErrorResponse
404 Fleet not found in caller's org, or the Kubernetes control plane has no cluster / no such node ErrorResponse
500 Internal failure before the upstream call ErrorResponse
502 The Kubernetes control plane returned 5xx ErrorResponse

Example request

curl -X POST "$API_URL/v1/fleets/$FLEET_ID/kubernetes-v2/nodes/$NODE_ID/uncordon" \
  -H "Authorization: Bearer $TOKEN"

Drain a managed Kubernetes worker node

POST /v1/fleets/{fleetId}/kubernetes-v2/nodes/{nodeId}/drain

Cordons the node and then evicts its pods (respecting PodDisruptionBudgets). The fleet must belong to the caller's organization. The node must be joined to the cluster; otherwise the request is rejected with 400, or 409 if the cluster is currently restoring or deleting. The request body is optional; omit it to use the defaults. Idempotency: pass Idempotency-Key to make this safely retryable.

Parameters

Name In Type Required Description
fleetId path string (uuid) Yes Fleet identifier
nodeId path string Yes Managed Kubernetes worker-node identifier (registry id)
Idempotency-Key header string No Unique key that makes retrying this request safe: a retry with the same key returns the first response instead of running the request again. Optional, but strongly recommended. Use a new UUID v4 for each operation, up to 255 characters. Most responses are kept for 24 hours. See API conventions for conflicts, mismatched retries and errors. Maximum length: 255.

Request body (application/json)

Mks2DrainNodeRequest

Responses

Status Description Body
202 Drain initiated (pods evicted) Mks2DrainNodeResponse
400 Fleet does not have a Kubernetes cluster, the node is not a member of the fleet, the request body is malformed, or the node has not joined the cluster ErrorResponse
401 Missing or invalid authentication ErrorResponse
404 Fleet not found in the caller's org, or the cluster or node was not found ErrorResponse
409 The cluster is currently restoring or deleting ErrorResponse
500 Internal server error ErrorResponse
502 Upstream service returned an error ErrorResponse

Example request

curl -X POST "$API_URL/v1/fleets/$FLEET_ID/kubernetes-v2/nodes/$NODE_ID/drain" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"gracePeriodSeconds":30}'

Example response (202)

{
  "nodeId": "g0546"
}

Was this page helpful?

What went wrong?

↑↓ Navigate↵ Open⌘↵ New tabesc Close