I have been trying to set up a kubernetes cluster.
I have two ubuntu droplets on digital ocean I am using to do this.
I have set up the master and joined the slave
I am now trying to create a secret for my docker credentials so that I can pull private images on the node, however when i run this command (or any other kubectl command e.g. kubectl get nodes) i get this error: The connection to the server localhost:8080 was refused - did you specify the right host or port?
This is however all set up as kubectl on its own shows help.
Does any one know why i might be getting this issue and how I can solve it?
sorry, i have just started with kubernetes, but i am trying to learn.
I understand that you have to set up the cluster on a user that is not root on the master (which I have) is it ok to use root on slaves?
thanks