-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support kubectl alias if command is not in your path #1514
Comments
@cawoodm in the short term you could make a small wrapper and put it in your path aka
|
I am actually curious why the kubectl binary is needed at all since several of the cli-runtimes for kubectl are already being imported, it should be possible to use the exposed go modules for everything and only require the binary if a plugin needs it |
This doesn't work, as k9s appears to rely on $KUBECONFIG (e.g. ~/.kube/config). microk8s kubectl and friends are sandboxed elsewhere by snap. |
It’s actually a pain to rely on kubectl too much since some versions (like k3s) do weird things like ignore ~/.kube/config preferring /etc/rancher/k3s/k3s.yaml |
Is your feature request related to a problem? Please describe.
It would be nice if K9S would pick op on a
kubectl
alias where the actualkubectl
executable is not installed but available via an alias.Describe the solution you'd like
When using K3S or MicroK8S there is no
kubectl
executable anywhere but rathermicrok8s kubectl
is used. Most users define analias kubectl='microk8s kubectl'
which lets ordinary users work with thekubectl
alias. K9S does not recognise this but is searching for a file calledkubectl
on thePATH
.Describe alternatives you've considered
No ideas.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: