Is there a way to specify the path to kubectl in tridentctl when kubectl is not in the $PATH?
Applies to
Trident
Answer
No, there is no such method.
- There is no way to specify the path to
kubectl
from thetridentctl
side. tridentctl
searches forkubectl
starting from the beginning of the $PATH- Make sure that
kubectl
is accessible from the $PATH.- If the $PATH is not set, or if
kubectl
is found but cannot be executed, the following error happens: Error: could not find the Kubernetes CLI: exec: "kubectl": executable file not found in $PATH
- If the $PATH is not set, or if
Additional Information
Trident installation fails with error "could not find the Kubernetes CLI
"