Installation

Introduction

This installation covers installing the kubectl-power-forward binary to your system. You will need some kind of client to use it, like a browser or application. The later is not part of this documentation.

System requirements

kubectl-power-forward is built to run on Linux and Mac, both with amd64 and arm64 (e.g. Apple Silicon) CPUs.

Installation / Update steps

The following procedure explains how to install kubectl-power-forward as binary.

  1. Go to the release page, choose your release and download the archive matching you system
  2. Unpack the archive, e.g. tar -xf <PAHT_TO_ARCHIVE>
  3. Place the binary from the archive to a localtion in your PATH variable, e.g. /usr/local/bin

Optional: Allow binding privileged ports

If you want to use kubectl-power-forward with ports < 1024 (e.g. 80 or 443 for easier usage with HTTP traffic), you can either use sudo mode or add the NET_BIND_SERVICE capability to the binary. You can do this with

$ sudo setcap 'cap_net_bind_service+ep' "$(which kubectl-power-forward)"

Uninstalling

Remove the binary with

$ rm $(which kubectl-power-forward)

Next steps

Read the Usage to learn how to set up forwarding.

Last modified June 11, 2024: feat: allow specifying contexts (fe69872)