All commands support these global flags:

FlagDescription
--kubeconfigPath to kubeconfig file
--contextKubernetes context to use
--namespace / -nNamespace (default: purelb-system for most commands)
--output / -oOutput format: json, yaml, or default table

status#

Cluster-wide health overview.

kubectl purelb status

Shows: 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]
FlagDescription
--service-groupFilter to a specific ServiceGroup
--show-servicesShow which services are using each pool

services#

All PureLB-managed services.

kubectl purelb services [flags]
FlagDescription
--all-namespaces / -AShow services from all namespaces
--poolFilter by ServiceGroup name
--nodeFilter by announcing node
--ipFilter by allocated IP
--problemsShow only services with detected issues

election#

Node Lease status and subnet coverage.

kubectl purelb election [flags]
FlagDescription
--checkRun health checks and report problems
--nodeShow details for a specific node
--simulate-drainShow what would happen if a node were drained

bgp sessions#

BGP neighbor state per node.

kubectl purelb bgp sessions [flags]
FlagDescription
--checkRun health checks and report problems
--nodeFilter to a specific node

bgp dataplane#

Route pipeline health: netlinkImport -> RIB -> advertise -> netlinkExport.

kubectl purelb bgp dataplane [flags]
FlagDescription
--checkRun health checks and report problems
--import-onlyShow only import pipeline
--export-onlyShow 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]
FlagDescription
--strictFail 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 ipv6

ip#

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 show

dashboard#

Live terminal monitoring view.

kubectl purelb dashboard

Shows a consolidated live view of pool status, election health, and BGP sessions.

version#

Show plugin and component versions.

kubectl purelb version