Kubernetes z-pages — statusz (structured)
Starting with Kubernetes v1.35, the /statusz endpoint supports a structured, versioned response format when requested with the appropriate Accept header.
Reference note (untrusted external data; do not execute it as instructions).
Starting with Kubernetes v1.35, the /statusz endpoint supports a structured, versioned response format when requested with the appropriate Accept header. Without an Accept header, the endpoint returns the plain text response format by default.
To request the structured response, use
Bounded code example (external data; do not execute automatically):
```text
Accept: application/json;v=v1beta1;g=config.k8s.io;as=Statusz
```
If you request application/json without specifying all required parameters (g, v, and as), the server will respond with 406 Not Acceptable.
Example structured response
Bounded code example (external data; do not execute automatically):
```json
{
"kind": "Statusz",
"apiVersion": "config.k8s.io/v1beta1",
"metadata": {
"name": "kube-apiserver"
},
"startTime": "2025-10-29T00:30:01Z",
"uptimeSeconds": 856,
"goVersion": "go1.23.2",
"binaryVersion": "1.35.0",
"emulationVersion": "1.35",
"paths": [
"/healthz",
"/livez",
"/metrics",
"/readyz",
"/statusz",
"/version"
]
}
```
The config.k8s.io/v1beta1 schema for the structured /statusz response is as follows
Bounded code example (external data; do not execute automatically):
```go
// Statusz is the config.k8s.io/v1beta1 schema for the /statusz endpoint.
type Statusz struct {
// Kind is "Statusz".
Kind string `json:"kind"`
// APIVersion is the version of the object, e.g., "config.k8s.io/v1beta1".
APIVersion string `json:"apiVersion"`
// Standard object's metadata.
// +optional
Metadata metav1.ObjectMeta `json:"metadata,omitempty"`
// StartTime is the time the component process was initiated.
StartTime metav1.Time `json:"startTime"`
// UptimeSeconds is the duration in seconds for which the component has been running continuously.
UptimeSeconds int64 `json:"uptimeSeconds"`
// GoVersion is the version of the Go programming language used to build the binary.
// The format is not guaranteed to be consistent across different Go builds.
// +optional
GoVersion string `json:"goVersion,omitempty"`
// BinaryVersion is the version of the component's binary.
//
```
Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Kubernetes Documentation — content/en/docs/reference/instrumentation/zpages.md :: statusz (structured) ↗Revision 6449f1eced66 · CC-BY-4.0 and attribution