Freelens Multi Pod Logs extension uses stern >= 1.30.0 under the hood, so it needs to be installed on your computer for the extension to work.
Below you can find a quick guide on how to install stern, either manually or via a package manager.
For more information visit the official repository
- Download a binary release for your OS
- Create directory
${HOME}/binby running${HOME}is also known as~mkdir -p ${HOME}/bin - Copy the downloaded binary in the directory
- Make the binary executable by running
chmod 755 ${HOME}/bin/binary - Linux specific step
Open file
${HOME}/.bashrcin a text editor (if the file doesn’t exist, create it) - macOS specific step Open your shell config file in a text editor (if the file doesn’t exist, create it)
- Add the below line to the shell config file, then save it:
export PATH="${HOME}/bin:${PATH}" - Restart your terminal
- Download a binary release for Windows
- Create folder
C:\binby running:mkdir C:\bin - Copy the download binary in the directory
- Edit the
PATHfor your accountsetx PATH "C:\bin;%PATH%" - Restart your terminal
- Download a binary release for Windows
- Create folder
C:\bin - Copy the download binary in the directory
- Press the Windows key, then search for and select Edit the system environment variables
- Click Environment Variables
- Under System Variables, find the
PATH(orPath) variable, select it, and click Edit.... - Add
C:\binfolder to the variable - Click OK until you exit the tab
If you use asdf, you can install like this:
asdf plugin-add stern
asdf install stern latest
If you use Homebrew, you can install like this:
brew install stern
If you use Krew which is the package manager for kubectl plugins, you can install like this:
kubectl krew install stern