kubefwd is a command line tool for Kubernetes Services and allows you to access any service from your local workstation in the same namespace on cluster. kubefwd temporally adds domain records to our /etc/hosts file with the service names it forwards.
Here is explaining the workflow from official GitHub repository:
![](https://d8devs.com/wp-content/uploads/2021/08/kubefwd.png)
and Screencast (it’s also from GitHub repository)
![](https://d8devs.com/wp-content/uploads/2021/08/kubefwd_ani-1024x428.gif)
Installation with homebrew
- Requirement
- kubectl kubefwd assumes you have kubectl installed and configured with cluster access.
You can install kubefwd directly from txn2/tap.
brew install txn2/tap/kubefwd
To upgrade:
brew upgrade kubefwd
Testing
Create and run forwarding
![](https://d8devs.com/wp-content/uploads/2021/08/Bildschirmfoto-2021-08-29-um-16.38.13-1024x251.png)
Open Gitea-Service and install it. After installation i have a new repo created and my ssh key in to the my gitea profile added.
Cloning, Pushing…
![](https://d8devs.com/wp-content/uploads/2021/08/Bildschirmfoto-2021-08-29-um-16.39.25-1024x762.png)
Gitea Dashboard
![](https://d8devs.com/wp-content/uploads/2021/08/Bildschirmfoto-2021-08-29-um-16.40.23-1024x748.png)
Views: 717