Kubernetes not scheduling pod on node
When running kubectl as root I get this error: Couldn't get current server API group list: Get "https://127.0.0.1:38805/api? timeout=32s": dial tcp 127.0.0.1:38805: connect: connection refused
But when I run it from user it runs okay
When I run kubectl config view as root and as user I get 2 different outputs.
I also do journalctl -u kubelet and got: error referenced variable KUBELET_KUBEADM_ARGS unset environment variable evaluates to and empty string. But when I checked printenv there's no variables set related to kubelet I don't understand
I tried swapoff -a I tried systemctl reset kubelet I tried export KUBELET_KUBEADM_ARGS=value I tried to remove all taints from all the nodes Nothing works