Kunnel

Kunnel is short for Kubernetes tunnel, built for exposing Kubernetes service to outside the cluster without LoadBalancer or NodePort.

Install

Binaries

You can download releases directly from Release Page

Build from source

git clone https://github.com/zryfish/kunnel.git
cd kunnel
make all

Binaries server client and kubectl-kn will be found under directory bin/.

How to run

Proxy kubernetes service

It’s easy to proxy service of Kubernetes. Suppose you have an nginx service under namespace default.

<div class="highlight highlight-source-shell position-relative" data-snippet-clipboard-copy-content="[email protected]:~# kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.233.0.1 443/TCP 11d
nginx ClusterIP 10.233.48.225 80/TCP 8s
“>

[email protected]:~# kubectl get svc
NAME         TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE
kubernetes   ClusterIP   10.233.0.1      <none>        443/TCP   11d
nginx        ClusterIP   10.233.48.225   <none>        80/TCP    8s