>_ RESTERM
v1.18.2

examples Your own servers

k8s.http

Kubernetes profile scopes, non-pod targets, named ports, and gRPC over @k8s.

needs your own cluster

shell
resterm _examples/k8s.http

Run this from the root of a clone of the Resterm repository.

Editor
# @k8s global cluster-api namespace=default service=api port=http context=kind-dev persist retries=2 pod_running_timeout=30s
# @k8s file payments namespace=payments deployment=payments-api port=https container=api

### Health through shared service profile
# @k8s use=cluster-api
GET http://api.default.svc.cluster.local/v1/health
Accept: application/json

### One-off statefulset target with named port
# @k8s namespace=default statefulset=postgres port=pgsql
GET http://postgres.default.svc.cluster.local:5432/healthz

### Override selected profile target and port
# @k8s use=cluster-api target=pod:api-server-0 port=8080
GET http://api.default.svc.cluster.local/v1/version

### Deployment profile over gRPC
# @k8s use=payments
# @grpc testservices.inventory.ProjectService/Seed
GRPC passthrough:///payments-api.payments.svc.cluster.local:8082

{}

_examples/k8s.http on GitHub

Kubernetes port-forwards docs
Search

↑↓ moveEnter openEsc close

Help

These keys work like the ones in the TUI.

/
Search the docs (also Ctrl K)
j k
Scroll down and up
g g G
Jump to the top or the bottom
[ ]
Previous and next page
g d
Docs index
g h
Home page
t
Switch between dark and light
?
Show this help
Esc
Close a dialog