Kubernetes control plane components' debugging is now improved with structured z-pages in version 1.35. Z-pages, introduced in 1.32, provide debugging information via endpoints like `/statusz` and `/flagz`. Previously, these endpoints presented plain text output, limiting programmatic use. Version 1.35 introduces machine-readable JSON responses for `/statusz` and `/flagz` for automation. These structured responses are enabled using specific HTTP Accept headers. The enhancement maintains backward compatibility, offering plain text if no Accept header is present. The structured responses facilitate automated health checks, better debugging tools, and API versioning. Using structured z-pages requires enabling the ComponentStatusz and ComponentFlagz feature gates. These features are currently alpha, meaning they may evolve and should be used with caution. Access to these endpoints is restricted, prioritizing security through authorization and authentication. The Kubernetes community plans to improve these features and values feedback from users.
kubernetes.io
kubernetes.io
