Skip to content

Add pod/service/node proxy support #109

Description

@cuppett

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

  • Add Proxyable contract with resourceProxyPath(string $path = ''): string
  • Implement on K8sPod, K8sService, K8sNode
  • Add proxy(string $method, string $path, ...) method that sends arbitrary HTTP requests through the proxy endpoint
  • Must support all HTTP methods (GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH)

Effort: Large (complex HTTP proxying semantics)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestoperationNew cluster/resource operationtier-4Edge cases/complex protocols

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions