I am trying to setup a kubernetes cluster on a raspberry pi cluster.
In the time i was waiting for my pi's to arrive i tried the kubernetes cluster in virtualbox.
Oké that wasn't an arm system but turorials online say it's the same setup.
I initialized my master with the following command
-sudo kubeadm init --config configfile.yaml
the config file
----------------------
apiVersion:
kubeadm.k8s.io/v1alpha1kind: MasterConfiguration
controllerManagerExtraArgs:
pod-eviction-timeout: 10s
node-monitor-grace-period: 10s
node-monitor-period: 2s
-----------------------
when i execute the init command , i get the usual output to create a .kube folder in the $home directory and copy the config file and give more rights to it.
After that i tried to test my cluster with the command , sudo kubectl get nodes
But i got the error
`the connection to the server localhost:8080 was refused - did you specify the right host or port`
I got this error before but it was when i didn't copy the config file to the home folder .
I think i did everything right to set up my kubernetes master. Can someone pls help me in the right direction.