Skip to main content

Kubevpn disconnect

Disconnect from Kubernetes cluster network

This command is used to disconnect from the cluster. After using the kubevpn connect command, you can use this command to disconnect from a specific cluster.

  • Before disconnecting, it will leave the proxy resource and sync resource if the resource depends on this cluster.
  • After disconnecting, it will also clean up the DNS and hosts.

Examples

Disconnect from a specific connection ID

kubevpn disconnect 03dc50feb8c3

Disconnect from all cluster

kubevpn disconnect --all

Options

--all=false:
Disconnect all clusters, disconnect from all cluster networks

--debug=false:
enable debug mode or not, true or false