All commands support these global flags:
| Flag | Description |
|---|---|
--kubeconfig | Path to kubeconfig file |
--context | Kubernetes context to use |
--namespace / -n | Namespace (default: purelb-system for most commands) |
--output / -o | Output format: json, yaml, or default table |
status#
Cluster-wide health overview.
kubectl purelb statusShows: component health (allocator, lbnodeagent pods), pool utilization summary, election health, BGP session summary, managed service count, and overall status with warnings.
pools#
ServiceGroup pool utilization.
kubectl purelb pools [flags]| Flag | Description |
|---|---|
--service-group | Filter to a specific ServiceGroup |
--show-services | Show which services are using each pool |
services#
All PureLB-managed services.
kubectl purelb services [flags]| Flag | Description |
|---|---|
--all-namespaces / -A | Show services from all namespaces |
--pool | Filter by ServiceGroup name |
--node | Filter by announcing node |
--ip | Filter by allocated IP |
--problems | Show only services with detected issues |
election#
Node Lease status and subnet coverage.
kubectl purelb election [flags]| Flag | Description |
|---|---|
--check | Run health checks and report problems |
--node | Show details for a specific node |
--simulate-drain | Show what would happen if a node were drained |
bgp sessions#
BGP neighbor state per node.
kubectl purelb bgp sessions [flags]| Flag | Description |
|---|---|
--check | Run health checks and report problems |
--node | Filter to a specific node |
bgp dataplane#
Route pipeline health: netlinkImport -> RIB -> advertise -> netlinkExport.
kubectl purelb bgp dataplane [flags]| Flag | Description |
|---|---|
--check | Run health checks and report problems |
--import-only | Show only import pipeline |
--export-only | Show only export pipeline |
inspect#
Deep-dive diagnosis of a single service.
kubectl purelb inspect <namespace>/<service>Shows: allocation source, pool type, announcing node/interface, election state, endpoint health, and any detected problems.
validate#
Configuration consistency checks.
kubectl purelb validate [flags]| Flag | Description |
|---|---|
--strict | Fail on warnings (for CI/CD) |
Checks: overlapping pools, unreachable subnets, missing BGP configuration for remote pools, LBNodeAgent consistency.
gobgp#
Proxy the gobgp CLI into the k8gobgp sidecar.
kubectl purelb gobgp <gobgp-args>Examples:
kubectl purelb gobgp neighbor
kubectl purelb gobgp global rib -a ipv4
kubectl purelb gobgp global rib -a ipv6ip#
Proxy the ip command into a lbnodeagent pod.
kubectl purelb ip <ip-args>Examples:
kubectl purelb ip addr show
kubectl purelb ip addr show dev kube-lb0
kubectl purelb ip route showdashboard#
Live terminal monitoring view.
kubectl purelb dashboardShows a consolidated live view of pool status, election health, and BGP sessions.
version#
Show plugin and component versions.
kubectl purelb version