I am getting this error and I don’t know how to solve this:
Failed to start kube-apiserver.service: Unit kube-apiserver.service not found.
How to take care of this?? And there is another error that I am facing:
sudo kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.4", GitCommit:"fa3d7990104d7c1f16943a67f11b154b71f6a132", GitTreeState:"clean", BuildDate:"2023-07-19T12:20:54Z", GoVersion:"go1.20.6", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v5.0.1
The connection to the server 10.2.8.18:6443 was refused - did you specify the right host or port?