brc extract port
brc extract port
Extract particular port number and IP address from a specific Element
Synopsis
This command extracts the port number and IP address of a matching port name, most likely from the protocol names,
from a particular Element in the namespace. If the --immediate
flag is not set, the command would try to
communicate with the Manager of that Element to get first-hand accurate information. In this case, routing to the pods
to the cluster is required.
To set up routing to the cluster, you need to be on the same network as the cluster nodes or any other network that receives BGP routes from the cluster nodes. Port extraction with the Manager is not supported in public clouds or any other deployment type that does not run Calico or Cilium with BGP enabled.
The option --namespace
by default points to a Kubernetes namespace of the default Kubernetes context. You
may explicitly provide the context in the format of <context-name>.<namespace>
to access the cluster using
particular kubectl
context.
- This command does not support bare-metal machines for the context.
brc extract port [flags]
Examples
brc extract port <element> <port-name> [--immediate]
Options
-h, --help help for port
--immediate Extract port information immediately
--ipv6 Extract IPv6 address instead of IPv4
Options inherited from parent commands
-n, --namespace string namespace to perform the operations (default "trirematics")
-v, --verbose debug output
SEE ALSO
- brc extract - Extract logs, configuration, PCAPs, or infrastructure details