Skip to main content

Kubevpn status

Show connect status and list proxy/sync resource

Show connect status and list proxy or sync resource. You can check the connect status by the status field and netif. If netif is empty, it means the tun device is closed, making it unhealthy. It will also display route information. If proxying workloads, it shows not only the proxy resource itself but also other route information.

Examples

Show status for connect status and list proxy/sync resource​

kubevpn status

Query status by alias config name dev_new​

kubevpn status --alias dev_new

Query status with output in JSON format​

kubevpn status -o json

Query status with output in YAML format​

kubevpn status -o yaml

Query status with wide output (includes IP column)​

kubevpn status -o wide

Options

--alias='':
Alias name, query connect status by alias config name

-f, --kubevpnconfig='~/.kubevpn/config.yaml':
Path to the kubevpnconfig file to use for CLI requests.

-o, --output='table':
Output format. One of: (json, yaml, table, wide)

-r, --remote='':
Remote config file, eg: https://raw.githubusercontent.com/kubenetworks/kubevpn/master/pkg/config/config.yaml