kdash
kdash copied to clipboard
MacOS not loading from ~/.kube/config
Describe the bug
-
kdash
presents the application fine, but shows Error:
Unable to obtain Kubernetes client. failed to infer config: in-cluster: (failed to read an incluster environment variable: environment variable not found), kubeconfig: (failed to determine currrent context)
Have to make my terminal tiny to see the whole error. After a few seconds, it changes to:
channel closed
- Also tried with Exported
KUBE_CONFIG
,KUBECONFIG
,kubeconfig
,KUBE_CONFIG_PATH
as~/.kube/config
in ~/.zshrc, and ransource ~/.zshrc
On the other hand, k9s
loads from ~/.kube/config
just fine.
I can't see documentation on what setup is required for MacOS. I tried the Docker command, but get the same error. The only difference is that docker and docker-compose are now "Not found" in the CLI Info tab, for the docker container.
Expected behavior MacOS should load from ~/.kube/config by default, like k9s
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- macOS 14.2.1
- iTerm, 3.4.23
- zsh, 5.9
- ? Kubectl Client Version [e.g. 1.19]
- kubernetes-cli 1.29.0
-
kubectl version --client
1.28.2, Kustomize v5.0.4-0.202.... - Retried with binary kubectl install, to /usr/local/bin/kubectl - still not detected inside kdash
- Same for only having fresh Homebrew kubectl install
- ? Kubectl Server Version [e.g. 1.19]
- kubernetes-cli 1.29.0
- KDash version 0.4.6, installed with Homebrew
Note: kubectl client, kubectl server are Not found
from brew-installed kdash