A script to set up persistent connections to k8s clusters

boundary connect kube is extremely slow because it creates a new connection every time you call it. The alternative is to set up a persistent connection and reuse it over time (until it dies). Here’s a script that allows very seamless persistent connections. You use it the same way you use Kubectl. I aliased it to bk. It requires jq to be present in the system.