Daniel's Tech Blog

Cloud Computing, Cloud Native & Kubernetes

Using Hubble CLI’s automatic port forwarding

This will be a rather short blog post today, but it will highlight a new feature in the Hubble CLI in version 1.17 and later.

Since version 1.17, the option -P has been added to the Hubble CLI. -P enables the automatic port forwarding to the Hubble relay in the Kubernetes cluster.

Terminal - Showing Hubble CLI's -P option for automatic port fowarding

As seen in the screenshot above, with the option -P, you can run immediately the Hubble CLI command you want without using cilium hubble port-forward to connect to the Hubble relay upfront with another process.

For comparison, have a look at the screenshot below that shows the process before version 1.17 or without using the option -P.

Terminal - Showing Hubble CLI's port fowarding without using option -P

Even though this is only a small new feature it is one that makes day-to-day usage of the Hubble CLI way more convenient than before.

More details about the implementation can be found in the PR.

-> https://github.com/cilium/cilium/pull/35483


Posted

in

WordPress Cookie Notice by Real Cookie Banner