brc expose
brc expose
Forward cluster services to localhost
Synopsis
Forward one or more Kubernetes services to the localhost of the machine running brc, through the Kubernetes API server. Any machine with a valid kubeconfig can expose services, no extra network access to the cluster is required.
Without --namespace, the arguments are presets: short names for the well-known services of the platform,
listed below. Run brc expose without arguments to see which presets are running on the cluster. To expose any
other service, give its exact name together with --namespace; the arguments are then service names in that
namespace and presets are not used.
Each service keeps its own port locally when that port is free, otherwise a free port is picked. When the backing pod restarts, the forward reconnects to a new pod on the same local port.
Press Ctrl+C to stop all forwards.
Presets
victoriametrics: monitoring/vmsingle-vmks-victoria-metrics-k8s-stackvictorialogs: monitoring/vlsingle-vmks-victoria-metrics-k8s-stackgrafana: monitoring/vmks-grafanaomniroute: inference/omniroutephoenix: inference/phoenix-svc
brc expose [<preset>...] | <service>... -n <namespace> [flags]
Examples
# show the presets and whether they are running
brc expose
# expose several presets at once
brc expose victoriametrics grafana
# expose any service by its exact name and namespace
brc expose ollama -n inference
# pick the service port and the local port
brc expose vmks-grafana -n monitoring --port 80 --local-port 3001
Options
-h, --help help for expose
--local-port int local port to listen on (default: the service port when free, else a random one)
--port string service port to forward, by name or number (default: http/web/ui port, else the first one)
Options inherited from parent commands
-n, --namespace string namespace to perform the operations (default "trirematics")
-v, --verbose debug output
SEE ALSO
- brc - BubbleRAN Commandline