When trying to monitor the progress of deploying NODE, users are seeing "ERROR: 'kubectl' is required but not found in PATH."
search cancel

When trying to monitor the progress of deploying NODE, users are seeing "ERROR: 'kubectl' is required but not found in PATH."

book

Article ID: 451019

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

During the process of deploying NODE, users can monitor the progress of the application installation, list all applications across all namespaces and provide their current status by issuing the following command:

 
kubectl get apps -A

When this command is being run, users are getting the following error:

ERROR: 'kubectl' is required but not found in PATH.

Environment

All Supported Releases

Resolution

1. Run this command in your terminal to see if the binary exists somewhere on your filesystem:

which kubectl || find /usr -name kubectl 2>/dev/null

 

  • If it returns a path (e.g., /usr/local/bin/kubectl or ~/.local/bin/kubectl): Proceed to Step 2.

  • If it returns nothing: Skip to Step 3.

2. Open your shell config file (~/.bashrc for Bash or ~/.zshrc for Zsh):

nano ~/.bashrc

    Add this line at the bottom (replace /usr/local/bin with the directory where kubectl lives):

export PATH=$PATH:/usr/local/bin

    Save and reload the profile:

source ~/.bashrc

3. Download the latest official binary, make it executable, and move it to a standard system directory (/usr/local/bin is in PATHby default on all Linux distros):

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

chmod +x kubectl

sudo mv kubectl /usr/local/bin/