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.
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.
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.