forked from renoki-co/php-k8s
-
Notifications
You must be signed in to change notification settings - Fork 4
Add pod/service/node proxy support #109
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestoperationNew cluster/resource operationNew cluster/resource operationtier-4Edge cases/complex protocolsEdge cases/complex protocols
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestoperationNew cluster/resource operationNew cluster/resource operationtier-4Edge cases/complex protocolsEdge cases/complex protocols
Projects
- StatusShow more project fieldsTodo
Summary
Add support for the proxy subresource on Pods, Services, and Nodes, enabling arbitrary HTTP proxying through the Kubernetes API server.
Motivation
The proxy subresource allows making HTTP requests to a pod/service/node through the API server (e.g.,
GET /api/v1/namespaces/{ns}/pods/{name}/proxy/{path}). Used for accessing pod-hosted dashboards, health endpoints, and internal services without port-forwarding.Implementation
Proxyablecontract withresourceProxyPath(string $path = ''): stringK8sPod,K8sService,K8sNodeproxy(string $method, string $path, ...)method that sends arbitrary HTTP requests through the proxy endpointEffort: Large (complex HTTP proxying semantics)