Cyberithub

How to Install kubefwd on macOS Using 6 Easy Steps

Advertisements

In this article, we will see how to install kubefwd on macOS Using 6 Easy Steps. kubefwd, written in Go language is the most widely and most popular bulk service forwarding tool in Kubernetes. It is commonly known as kube forward and available as a single binary command line tool. The beauty of kubefwd is that it does not require you to make any modifications to remote clusters. You can simply port-forward all the services from a loopback address on your local system by launching a simple command. It uses the same port exposed by the services in kubernetes clusters.

Another important feature is that you cannot just port-forward all the services within a single namespace but within multiple namespaces on one or more clusters. It greatly helps in easing the development of applications that communicate with other services. It is fast, reliable and can be easily installed in Mac based systems. Here we will see the steps to install and use kubefwd in great detail.

 

How to Install kubefwd on macOS Using 6 Easy Steps

How to Install kubefwd on macOS Using 6 Easy Steps

Also Read: How to Install catdoc(xls2csv) on macOS Using 9 Easy Steps

Step 1: Prerequisites

a) You should have a running macOS System.

b) You should have sudo access to start Service forwarding using kubefwd.

c) You should have brew utility available in your System.

 

Step 2: Update Your Server

Before installing any new formulae, it is best to first update all the outdated formulae by using brew update command as shown below.

cyberithub@macos1066 ~ % brew update

 

Step 3: Install kubefwd

Once all the formulae are updated, you can choose to install kubefwd in your system by using brew install txn2/tap/kubefwd command as shown below.

cyberithub@macos1066 ~ % brew install txn2/tap/kubefwd
==> Tapping txn2/tap
Cloning into '/usr/local/Homebrew/Library/Taps/txn2/homebrew-tap'...
remote: Enumerating objects: 500, done.
remote: Counting objects: 100% (100/100), done.
remote: Compressing objects: 100% (75/75), done.
remote: Total 500 (delta 47), reused 0 (delta 0), pack-reused 400
Receiving objects: 100% (500/500), 54.30 KiB | 327.00 KiB/s, done.
Resolving deltas: 100% (224/224), done.
Tapped 13 formulae (24 files, 81.9KB).
==> Fetching txn2/tap/kubefwd
==> Downloading https://github.com/txn2/kubefwd/releases/download/1.22.5/kubefwd_Darwin_x86_64.tar.gz
..................................................................

 

Step 4: Check Service Forwarding Options

You can check the list of service forwarding options available with kubefwd formulae using kubefwd help svc command as shown below.

cyberithub@macos1066 ~ % kubefwd help svc

 

Step 5: Forward Services

Now that kubefwd is installed and ready, you can use it to port forward the services in bulk. For example, in our case we have all our services running under hcm namespace in kubernetes cluster. To port forward those services, we just need to use sudo -E kubefwd svc -n hcm command as shown below.

cyberithub@macos1066 ~ % sudo -E kubefwd svc -n hcm

 

Step 6: Uninstall kubefwd

Once you are done with the formulae, you can choose to uninstall it from your system by using brew uninstall kubefwd command as shown below.

cyberithub@macos1066 ~ % brew uninstall kubefwd

Leave a Comment