How can I fix kubernetes configuration?

10/7/2019

I have recently installed kubernetes but nothing works.

[~]$ kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.2", GitCommit:"f6278300bebbb750328ac16ee6dd3aa7d3549568", GitTreeState:"archive", BuildDate:"2019-08-16T14:14:51Z", GoVersion:"go1.12.7", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
[~]$ kubectl get pods
The connection to the server localhost:8080 was refused - did you specify the right host or port?

I have no configuration file.

[~]$ tree ~/.kube/
/home/MohamedAmin/.kube/

0 directories, 0 files

Here is the content of /etc/kubernetes

[~]$ tree /etc/kubernetes/
/etc/kubernetes/
├── apiserver
├── config
├── controller-manager
├── kubelet
├── proxy
└── scheduler

0 directories, 6 files

The value of the environment variable is not set KUBECONFIG.

I am currently working on fedora 30 and I have installed kubernetes from the official repositories.

How can I fix that?

-- MohamedAmin Samet
fedora
kubernetes

0 Answers