Proxy to Kubernetes API
Clusters
Proxy to Kubernetes API
Transparent proxy to the cluster’s Kubernetes API server. The path after /kube/ is forwarded directly. All HTTP methods are supported.
Examples:
GET /clusters/{id}/kube/api/v1/namespaces— list namespacesGET /clusters/{id}/kube/api/v1/namespaces/{ns}/pods— list podsGET /clusters/{id}/kube/api/v1/namespaces/{ns}/pods/{pod}/log?tailLines=100— pod logsGET /clusters/{id}/kube/apis/apps/v1/namespaces/{ns}/deployments— list deploymentsGET /clusters/{id}/kube/openapi/v3— Kubernetes OpenAPI spec
GET
Proxy to Kubernetes API
Authorizations
Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens
Path Parameters
Cluster ID
Kubernetes API path
Example:
"api/v1/namespaces"
Response
Kubernetes API response